support sys.argv --listen --share --port
This commit is contained in:
lllyasviel
2023-08-14 06:56:23 -07:00
committed by GitHub
parent 50708f3d22
commit 7900480360
5 changed files with 25 additions and 4 deletions
+4 -1
View File
@@ -21,7 +21,10 @@ def worker():
try:
async_gradio_app = shared.gradio_root
print(f'''App started successful. Use the app with {str(async_gradio_app.local_url)} or {str(async_gradio_app.server_name)}:{str(async_gradio_app.server_port)}''')
flag = f'''App started successful. Use the app with {str(async_gradio_app.local_url)} or {str(async_gradio_app.server_name)}:{str(async_gradio_app.server_port)}'''
if async_gradio_app.share:
flag += f''' or {async_gradio_app.share_url}'''
print(flag)
except Exception as e:
print(e)