diff --git a/build/lib/gradio/networking.py b/build/lib/gradio/networking.py index 7004fc2ff0..bafe9fbda6 100644 --- a/build/lib/gradio/networking.py +++ b/build/lib/gradio/networking.py @@ -14,6 +14,8 @@ from gradio.tunneling import create_tunnel import urllib.request from shutil import copyfile import requests +import os + INITIAL_PORT_VALUE = ( 7860 @@ -21,7 +23,7 @@ INITIAL_PORT_VALUE = ( TRY_NUM_PORTS = ( 100 ) # Number of ports to try before giving up and throwing an exception. -LOCALHOST_NAME = "127.0.0.1" +LOCALHOST_NAME = os.getenv('GRADIO_SERVER_NAME', "127.0.0.1") GRADIO_API_SERVER = "https://api.gradio.app/v1/tunnel-request" STATIC_TEMPLATE_LIB = pkg_resources.resource_filename("gradio", "templates/") diff --git a/build/lib/gradio/outputs.py b/build/lib/gradio/outputs.py index 872c8aa32c..8d49ed38dd 100644 --- a/build/lib/gradio/outputs.py +++ b/build/lib/gradio/outputs.py @@ -42,6 +42,7 @@ class AbstractOutput(ABC): """ return {} + class Label(AbstractOutput): def __init__(self, num_top_classes=None, label=None): self.num_top_classes = num_top_classes diff --git a/dist/gradio-0.9.6-py3.7.egg b/dist/gradio-0.9.6-py3.7.egg deleted file mode 100644 index 538c46fc99..0000000000 Binary files a/dist/gradio-0.9.6-py3.7.egg and /dev/null differ diff --git a/dist/gradio-0.9.7-py3-none-any.whl b/dist/gradio-0.9.7-py3-none-any.whl deleted file mode 100644 index b57c57b3a7..0000000000 Binary files a/dist/gradio-0.9.7-py3-none-any.whl and /dev/null differ diff --git a/dist/gradio-0.9.7.tar.gz b/dist/gradio-0.9.7.tar.gz deleted file mode 100644 index cdc296c1b9..0000000000 Binary files a/dist/gradio-0.9.7.tar.gz and /dev/null differ diff --git a/gradio.egg-info/PKG-INFO b/gradio.egg-info/PKG-INFO index a9992a24f6..4ca224d33b 100644 --- a/gradio.egg-info/PKG-INFO +++ b/gradio.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: gradio -Version: 0.9.7 +Version: 0.9.8 Summary: Python library for easily interacting with trained machine learning models Home-page: https://github.com/gradio-app/gradio-UI Author: Abubakar Abid diff --git a/setup.py b/setup.py index c646380767..4a9fb8aee2 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ except ImportError: setup( name='gradio', - version='0.9.7', + version='0.9.8', include_package_data=True, description='Python library for easily interacting with trained machine learning models', author='Abubakar Abid', diff --git a/upload_to_pypi.sh b/upload_to_pypi.sh new file mode 100644 index 0000000000..34ccee97f9 --- /dev/null +++ b/upload_to_pypi.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +echo "Make sure to update the version number!!!" +rm dist/* +python setup.py sdist bdist_wheel +python -m twine upload dist/* +git add -A +git commit -m "updated PyPi version" +git push origin master