minor changes

This commit is contained in:
Abubakar Abid 2021-12-23 09:16:53 -06:00
parent 5a25bc27f1
commit 285c469035
2 changed files with 7 additions and 4 deletions

View File

@ -21,6 +21,7 @@ import sys
import threading import threading
import time import time
import traceback import traceback
import urllib.parse
import urllib.request import urllib.request
from werkzeug.security import safe_join from werkzeug.security import safe_join
from werkzeug.serving import make_server from werkzeug.serving import make_server
@ -261,8 +262,10 @@ def api_docs():
"output_types_doc": output_types_doc, "output_types_doc": output_types_doc,
"sample_inputs": sample_inputs, "sample_inputs": sample_inputs,
"auth": app.interface.auth, "auth": app.interface.auth,
"local_login_url": app.interface.local_url + "login", "local_login_url": urllib.parse.urljoin(
"local_api_url": app.interface.local_url + "api/predict" app.interface.local_url, "login"),
"local_api_url": urllib.parse.urljoin(
app.interface.local_url, "api/predict")
} }
return render_template("api_docs.html", **docs) return render_template("api_docs.html", **docs)

View File

@ -8,8 +8,8 @@ setup(
version='2.5.3', version='2.5.3',
include_package_data=True, include_package_data=True,
description='Python library for easily interacting with trained machine learning models', description='Python library for easily interacting with trained machine learning models',
author='Abubakar Abid', author='Abubakar Abid, Ali Abid, Ali Abdalla, Dawood Khan, Ahsen Khaliq',
author_email='a12d@stanford.edu', author_email='team@gradio.app',
url='https://github.com/gradio-app/gradio-UI', url='https://github.com/gradio-app/gradio-UI',
packages=['gradio'], packages=['gradio'],
license='Apache License 2.0', license='Apache License 2.0',