From 25a111e53d26e0dd095d2063122d7fb4070d2e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Faruk=20=C3=96zdemir?= Date: Fri, 25 Feb 2022 11:30:53 +0300 Subject: [PATCH] refactor --- gradio/interface.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gradio/interface.py b/gradio/interface.py index 7a9260f7b9..97a97f0d67 100644 --- a/gradio/interface.py +++ b/gradio/interface.py @@ -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