fix: replace regexp to support unicode chars (#1424)

This commit is contained in:
Evgenii 2024-02-10 21:15:10 +03:00 committed by Manuel Schmid
parent 98ba1d5d47
commit c32b9bdc44
No known key found for this signature in database
GPG Key ID: 32C4F7569B40B84B

View File

@ -15,7 +15,7 @@ from packaging.requirements import Requirement
logging.getLogger("torch.distributed.nn").setLevel(logging.ERROR) # sshh...
logging.getLogger("xformers").addFilter(lambda record: 'A matching Triton is not available' not in record.getMessage())
re_requirement = re.compile(r"\s*([-_a-zA-Z0-9]+)\s*(?:==\s*([-+_.a-zA-Z0-9]+))?\s*")
re_requirement = re.compile(r"\s*([-\w]+)\s*(?:==\s*([-+.\w]+))?\s*")
python = sys.executable
default_command_live = (os.environ.get('LAUNCH_LIVE_OUTPUT') == "1")