mirror of
https://github.com/gradio-app/gradio.git
synced 2025-04-06 12:30:29 +08:00
refactor
This commit is contained in:
parent
7635519c8d
commit
25a111e53d
@ -738,8 +738,7 @@ class Interface:
|
||||
|
||||
if share:
|
||||
if self.is_space:
|
||||
warnings.warn("Share is not supported when you are in Spaces")
|
||||
raise RuntimeError
|
||||
raise RuntimeError("Share is not supported when you are in Spaces")
|
||||
try:
|
||||
share_url = networking.setup_tunnel(server_port, private_endpoint)
|
||||
self.share_url = share_url
|
||||
|
Loading…
x
Reference in New Issue
Block a user