From b3b5a7670638829ac75d7769562b2ce38e87dcaf Mon Sep 17 00:00:00 2001 From: aliabd Date: Thu, 24 Sep 2020 00:03:49 +0400 Subject: [PATCH] updated PyPi version --- build/lib/gradio/networking.py | 9 +++++++-- gradio.egg-info/PKG-INFO | 2 +- setup.py | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/build/lib/gradio/networking.py b/build/lib/gradio/networking.py index f3fcf76058..7d98fdfbc7 100644 --- a/build/lib/gradio/networking.py +++ b/build/lib/gradio/networking.py @@ -34,8 +34,8 @@ STATIC_PATH_LIB = pkg_resources.resource_filename("gradio", "static/") app = Flask(__name__, template_folder=STATIC_TEMPLATE_LIB, - static_url_path="/static/", - static_folder=STATIC_PATH_LIB) + static_folder=None) # TODO (aliabid94): replace with default static +# handler app.app_globals = {} # Hide Flask default message @@ -85,6 +85,11 @@ def main(): ) +@app.route("/static/") +def static(path): + return send_file(os.path.join(STATIC_PATH_LIB, path)) + + @app.route("/config/", methods=["GET"]) def config(): return jsonify(app.app_globals["config"]) diff --git a/gradio.egg-info/PKG-INFO b/gradio.egg-info/PKG-INFO index baccca3744..e3707ea4dd 100644 --- a/gradio.egg-info/PKG-INFO +++ b/gradio.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: gradio -Version: 1.2.1 +Version: 1.2.2 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 2eab937a7a..309f2ab565 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ except ImportError: setup( name='gradio', - version='1.2.1', + version='1.2.2', include_package_data=True, description='Python library for easily interacting with trained machine learning models', author='Abubakar Abid',