Merge branch 'master' into abidlabs/external

This commit is contained in:
Abubakar Abid 2021-05-21 12:41:13 -04:00 committed by GitHub
commit 30d8f12446
2 changed files with 3 additions and 3 deletions

View File

@ -1,3 +1,3 @@
pytorch-transformers==1.0.0
Flask==1.1.1
Flask-Cors==3.0.8
Flask-Cors==3.0.9

View File

@ -445,7 +445,7 @@ class Interface:
# If running in a colab or not able to access localhost, automatically create a shareable link
is_colab = utils.colab_check()
if is_colab or (share and not(networking.url_ok(path_to_local_server))):
if is_colab or not(networking.url_ok(path_to_local_server)):
share = True
if is_colab:
if debug:
@ -508,7 +508,7 @@ class Interface:
while True:
sys.stdout.flush()
time.sleep(0.1)
return app, path_to_local_server, share_url