mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
messaging fix
This commit is contained in:
parent
e6ce35d6d2
commit
8b17af6e77
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user