mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-27 01:40:20 +08:00
make colab friendly
This commit is contained in:
parent
dcf300d62d
commit
4ce84d3bab
@ -312,10 +312,7 @@ class Interface:
|
|||||||
utils.version_check()
|
utils.version_check()
|
||||||
is_colab = utils.colab_check()
|
is_colab = utils.colab_check()
|
||||||
if not is_colab:
|
if not is_colab:
|
||||||
if not networking.url_ok(path_to_local_server):
|
share = True
|
||||||
share = True
|
|
||||||
else:
|
|
||||||
print(strings.en["RUNNING_LOCALLY"].format(path_to_local_server))
|
|
||||||
else:
|
else:
|
||||||
if debug:
|
if debug:
|
||||||
print("Colab notebook detected. This cell will run indefinitely so that you can see errors and logs. "
|
print("Colab notebook detected. This cell will run indefinitely so that you can see errors and logs. "
|
||||||
|
Loading…
Reference in New Issue
Block a user