加入subpath支持,但暂不启用

This commit is contained in:
Your Name
2023-04-22 18:07:24 +08:00
parent 206f4138b6
commit e90eee2d8e
3 changed files with 17 additions and 12 deletions

View File

@ -521,7 +521,7 @@ class DummyWith():
def __exit__(self, exc_type, exc_value, traceback):
return
def run_gradio(demo, auth, port, custom_path):
def run_gradio_in_subpath(demo, auth, port, custom_path):
def is_path_legal(path: str)->bool:
'''
check path for sub url