fixed conflicts

This commit is contained in:
Abubakar Abid 2021-07-21 15:47:07 -05:00
commit 1e8d68a519
2 changed files with 4 additions and 1 deletions

View File

@ -536,7 +536,9 @@ class Interface:
self.share = share self.share = share
if share: if share:
if not private_endpoint: if private_endpoint:
print(strings.en["PRIVATE_LINK_MESSAGE"])
else:
print(strings.en["SHARE_LINK_MESSAGE"]) print(strings.en["SHARE_LINK_MESSAGE"])
try: try:
share_url = networking.setup_tunnel(server_port, private_endpoint) share_url = networking.setup_tunnel(server_port, private_endpoint)

View File

@ -21,6 +21,7 @@ en = {
"To turn off, set debug=False in launch().", "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()", "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 24 hours. If you need a permanent link, visit: https://gradio.app/introducing-hosted (NEW!)", "SHARE_LINK_MESSAGE": "This share link will expire in 24 hours. If you need a permanent link, visit: https://gradio.app/introducing-hosted (NEW!)",
"PRIVATE_LINK_MESSAGE": "Since this is a private endpoint, this share link will never expire.",
"SHARE_LINK_DISPLAY": "Running on External URL: {}", "SHARE_LINK_DISPLAY": "Running on External URL: {}",
"INLINE_DISPLAY_BELOW": "Interface loading below...", "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.", "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.",