make colab friendly

This commit is contained in:
Ali Abid 2020-09-22 15:23:56 -07:00
parent dcf300d62d
commit 4ce84d3bab

View File

@ -312,10 +312,7 @@ class Interface:
utils.version_check()
is_colab = utils.colab_check()
if not is_colab:
if not networking.url_ok(path_to_local_server):
share = True
else:
print(strings.en["RUNNING_LOCALLY"].format(path_to_local_server))
share = True
else:
if debug:
print("Colab notebook detected. This cell will run indefinitely so that you can see errors and logs. "