updated PyPi version

This commit is contained in:
aliabd 2020-09-24 00:03:49 +04:00
parent f0e6eb7901
commit b3b5a76706
3 changed files with 9 additions and 4 deletions

View File

@ -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/<path:path>")
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"])

View File

@ -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

View File

@ -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',