diff --git a/demo/utils/requirements.txt b/demo/utils/requirements.txt index 94d28cd04a..fb68457ce0 100644 --- a/demo/utils/requirements.txt +++ b/demo/utils/requirements.txt @@ -1,3 +1,3 @@ pytorch-transformers==1.0.0 Flask==1.1.1 -Flask-Cors==3.0.8 +Flask-Cors==3.0.9 diff --git a/gradio/interface.py b/gradio/interface.py index 6556865f3e..3510cb4cb3 100644 --- a/gradio/interface.py +++ b/gradio/interface.py @@ -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