From 440991cb1c84236fee258e053ac3931cd4b39ba3 Mon Sep 17 00:00:00 2001 From: Abubakar Abid Date: Thu, 3 Mar 2022 15:11:58 -0500 Subject: [PATCH 1/2] move is_space to launch() to allow blocks to launch() --- gradio/interface.py | 1 - gradio/launchable.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/gradio/interface.py b/gradio/interface.py index 09756afc84..aa5a8a5732 100644 --- a/gradio/interface.py +++ b/gradio/interface.py @@ -280,7 +280,6 @@ class Interface(Launchable): self.thumbnail = thumbnail theme = theme if theme is not None else os.getenv("GRADIO_THEME", "default") - self.is_space = True if os.getenv("SYSTEM") == "spaces" else False DEPRECATED_THEME_MAP = { "darkdefault": "default", "darkhuggingface": "dark-huggingface", diff --git a/gradio/launchable.py b/gradio/launchable.py index 10e6e8fd2d..c10ff5f217 100644 --- a/gradio/launchable.py +++ b/gradio/launchable.py @@ -88,6 +88,7 @@ class Launchable: self.height = height self.width = width self.favicon_path = favicon_path + self.is_space = True if os.getenv("SYSTEM") == "spaces" else False if hasattr(self, "encrypt") and self.encrypt is None: self.encrypt = encrypt From 166ef38f45ab20df2d9c98b0e432205675271631 Mon Sep 17 00:00:00 2001 From: Abubakar Abid Date: Thu, 3 Mar 2022 15:31:10 -0500 Subject: [PATCH 2/2] updated PyPi version to 2.8.7 --- gradio.egg-info/PKG-INFO | 2 +- gradio/version.txt | 2 +- scripts/upload_to_pypi.sh | 2 +- setup.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gradio.egg-info/PKG-INFO b/gradio.egg-info/PKG-INFO index 274a005ab6..f378a4da8b 100644 --- a/gradio.egg-info/PKG-INFO +++ b/gradio.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: gradio -Version: 2.8.6 +Version: 2.8.7 Summary: Python library for easily interacting with trained machine learning models Home-page: https://github.com/gradio-app/gradio-UI Author: Abubakar Abid, Ali Abid, Ali Abdalla, Dawood Khan, Ahsen Khaliq diff --git a/gradio/version.txt b/gradio/version.txt index adaf203ace..d45e55c217 100644 --- a/gradio/version.txt +++ b/gradio/version.txt @@ -1 +1 @@ -2.8.6 \ No newline at end of file +2.8.7 \ No newline at end of file diff --git a/scripts/upload_to_pypi.sh b/scripts/upload_to_pypi.sh index 0699a6f4e7..121c99a3f6 100755 --- a/scripts/upload_to_pypi.sh +++ b/scripts/upload_to_pypi.sh @@ -5,7 +5,7 @@ if [ -z "$(ls | grep CONTRIBUTING.md)" ]; then else echo "Uploading to pypi" set -e - git pull + git pull origin master old_version=$(grep -Po "(?<=version=\")[^\"]+(?=\")" setup.py) echo "Current version is $old_version. New version?" read new_version diff --git a/setup.py b/setup.py index bf000c1cb3..3594c99f5b 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ except ImportError: setup( name="gradio", - version="2.8.6", + version="2.8.7", include_package_data=True, description="Python library for easily interacting with trained machine learning models", author="Abubakar Abid, Ali Abid, Ali Abdalla, Dawood Khan, Ahsen Khaliq",