mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
Private link non expiry message
This commit is contained in:
parent
935f58f6d1
commit
8ca97e4bcf
@ -536,7 +536,9 @@ class Interface:
|
||||
self.share = share
|
||||
|
||||
if share:
|
||||
if not private_endpoint:
|
||||
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)
|
||||
|
@ -21,6 +21,7 @@ en = {
|
||||
"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 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: {}",
|
||||
"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.",
|
||||
|
Loading…
Reference in New Issue
Block a user