mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-15 02:11:15 +08:00
updated strings so that people reach out to us via email more
This commit is contained in:
parent
b61401b819
commit
0791596989
@ -584,15 +584,15 @@ class Interface:
|
||||
self.share = share
|
||||
|
||||
if share:
|
||||
if private_endpoint:
|
||||
print(strings.en["PRIVATE_LINK_MESSAGE"])
|
||||
else:
|
||||
print(strings.en["SHARE_LINK_MESSAGE"])
|
||||
try:
|
||||
share_url = networking.setup_tunnel(
|
||||
server_port, private_endpoint)
|
||||
self.share_url = share_url
|
||||
print(strings.en["SHARE_LINK_DISPLAY"].format(share_url))
|
||||
if private_endpoint:
|
||||
print(strings.en["PRIVATE_LINK_MESSAGE"])
|
||||
else:
|
||||
print(strings.en["SHARE_LINK_MESSAGE"])
|
||||
except RuntimeError:
|
||||
send_error_analytics(self.analytics_enabled)
|
||||
share_url = None
|
||||
|
@ -5,24 +5,21 @@ import json
|
||||
MESSAGING_API_ENDPOINT = "https://api.gradio.app/gradio-messaging/en"
|
||||
|
||||
en = {
|
||||
"BETA_MESSAGE": "NOTE: Gradio is in beta stage, please report all bugs to: gradio.app@gmail.com",
|
||||
"RUNNING_LOCALLY": "Running locally at: {}",
|
||||
"NGROK_NO_INTERNET": "Unable to create public link for interface, please check internet connection or try "
|
||||
"restarting python interpreter.",
|
||||
"RUNNING_LOCALLY": "Running on local URL: {}",
|
||||
"SHARE_LINK_DISPLAY": "Running on public URL: {}",
|
||||
"COLAB_NO_LOCAL": "Cannot display local interface on google colab, public link created.",
|
||||
"PUBLIC_SHARE_TRUE": "To create a public link, set `share=True` in `launch()`.",
|
||||
"PUBLIC_SHARE_TRUE": "\nTo create a public link, set `share=True` in `launch()`.",
|
||||
"MODEL_PUBLICLY_AVAILABLE_URL": "Model available publicly at: {} (may take up to a minute for link to be usable)",
|
||||
"GENERATING_PUBLIC_LINK": "Generating public link (may take a few seconds...):",
|
||||
"TF1_ERROR": "It looks like you might be using tensorflow < 2.0. Please pass capture_session=True in Interface() to"
|
||||
" avoid the 'Tensor is not an element of this graph.' error.",
|
||||
"BETA_INVITE": "\nWe want to invite you to become a beta user.\nYou'll get early access to new and premium "
|
||||
"features (persistent links, hosting, and more).\nIf you're interested please email beta@gradio.app\n",
|
||||
"features (persistent links, hosting, and more).\nIf you're interested please email: beta@gradio.app\n",
|
||||
"COLAB_DEBUG_TRUE": "Colab notebook detected. This cell will run indefinitely so that you can see errors and logs. "
|
||||
"To turn off, set debug=False in launch().",
|
||||
"COLAB_DEBUG_FALSE": "Colab notebook detected. To show errors in colab notebook, set debug=True in launch()",
|
||||
"SHARE_LINK_MESSAGE": "This share link will expire in 72 hours. If you need a permanent link, visit: https://gradio.app/introducing-hosted (NEW!)",
|
||||
"SHARE_LINK_MESSAGE": "\nThis share link will expire in 72 hours. To get longer links, send an email to: beta@gradio.app",
|
||||
"PRIVATE_LINK_MESSAGE": "Since this is a private endpoint, this share link will never expire.",
|
||||
"SHARE_LINK_DISPLAY": "Running on External URL: {}",
|
||||
"INLINE_DISPLAY_BELOW": "Interface loading below...",
|
||||
"MEDIA_PERMISSIONS_IN_COLAB": "Your interface requires microphone or webcam permissions - this may cause issues in Colab. Use the External URL in case of issues.",
|
||||
"TIPS": [
|
||||
|
Loading…
Reference in New Issue
Block a user