messaging fix

This commit is contained in:
dawoodkhan82 2020-08-31 17:54:22 -04:00
parent e6ce35d6d2
commit 8b17af6e77

View File

@ -310,8 +310,6 @@ class Interface:
share = True share = True
else: else:
print(strings.en["RUNNING_LOCALLY"].format(path_to_local_server)) print(strings.en["RUNNING_LOCALLY"].format(path_to_local_server))
print("To get a public link for a hosted model, "
"set Share=True")
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. "
@ -344,6 +342,8 @@ class Interface:
if self.verbose: if self.verbose:
print(strings.en["COLAB_NO_LOCAL"]) print(strings.en["COLAB_NO_LOCAL"])
else: # If it's not a colab notebook and share=False, print a message telling them about the share option. else: # If it's not a colab notebook and share=False, print a message telling them about the share option.
print("To get a public link for a hosted model, "
"set Share=True")
if self.verbose: if self.verbose:
print(strings.en["PUBLIC_SHARE_TRUE"]) print(strings.en["PUBLIC_SHARE_TRUE"])
share_url = None share_url = None