mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-03 01:50:59 +08:00
minor changes
This commit is contained in:
parent
5a25bc27f1
commit
285c469035
@ -21,6 +21,7 @@ import sys
|
||||
import threading
|
||||
import time
|
||||
import traceback
|
||||
import urllib.parse
|
||||
import urllib.request
|
||||
from werkzeug.security import safe_join
|
||||
from werkzeug.serving import make_server
|
||||
@ -261,8 +262,10 @@ def api_docs():
|
||||
"output_types_doc": output_types_doc,
|
||||
"sample_inputs": sample_inputs,
|
||||
"auth": app.interface.auth,
|
||||
"local_login_url": app.interface.local_url + "login",
|
||||
"local_api_url": app.interface.local_url + "api/predict"
|
||||
"local_login_url": urllib.parse.urljoin(
|
||||
app.interface.local_url, "login"),
|
||||
"local_api_url": urllib.parse.urljoin(
|
||||
app.interface.local_url, "api/predict")
|
||||
}
|
||||
return render_template("api_docs.html", **docs)
|
||||
|
||||
|
4
setup.py
4
setup.py
@ -8,8 +8,8 @@ setup(
|
||||
version='2.5.3',
|
||||
include_package_data=True,
|
||||
description='Python library for easily interacting with trained machine learning models',
|
||||
author='Abubakar Abid',
|
||||
author_email='a12d@stanford.edu',
|
||||
author='Abubakar Abid, Ali Abid, Ali Abdalla, Dawood Khan, Ahsen Khaliq',
|
||||
author_email='team@gradio.app',
|
||||
url='https://github.com/gradio-app/gradio-UI',
|
||||
packages=['gradio'],
|
||||
license='Apache License 2.0',
|
||||
|
Loading…
Reference in New Issue
Block a user