mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-25 05:48:55 +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 argparse
|
||||||
import glob
|
import glob
|
||||||
import os
|
import os
|
||||||
import shutil
|
|
||||||
import site
|
import site
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
@ -72,6 +71,7 @@ def install_dependencies():
|
|||||||
if sys.platform.startswith("win"):
|
if sys.platform.startswith("win"):
|
||||||
# punctuation contains: !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
|
# punctuation contains: !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
|
||||||
from string import punctuation
|
from string import punctuation
|
||||||
|
|
||||||
# Allow some characters: _-:\/.'"
|
# Allow some characters: _-:\/.'"
|
||||||
special_characters = punctuation.translate({ord(char): None for char in '_-:\\/.\'"'})
|
special_characters = punctuation.translate({ord(char): None for char in '_-:\\/.\'"'})
|
||||||
if any(char in script_dir for char in special_characters):
|
if any(char in script_dir for char in special_characters):
|
||||||
|
Loading…
Reference in New Issue
Block a user