mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-24 13:28:59 +01:00
Minor changes
This commit is contained in:
parent
5cbc0b28f2
commit
c0a1baa46e
2
webui.py
2
webui.py
@ -1,7 +1,6 @@
|
||||
import argparse
|
||||
import glob
|
||||
import os
|
||||
import shutil
|
||||
import site
|
||||
import subprocess
|
||||
import sys
|
||||
@ -72,6 +71,7 @@ def install_dependencies():
|
||||
if sys.platform.startswith("win"):
|
||||
# punctuation contains: !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
|
||||
from string import punctuation
|
||||
|
||||
# Allow some characters: _-:\/.'"
|
||||
special_characters = punctuation.translate({ord(char): None for char in '_-:\\/.\'"'})
|
||||
if any(char in script_dir for char in special_characters):
|
||||
|
Loading…
Reference in New Issue
Block a user