mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-01 11:45:36 +08:00
fixed api url and template
This commit is contained in:
parent
eaa9699283
commit
118305483e
@ -41,7 +41,7 @@ export class GradioPage extends React.Component {
|
||||
</div>
|
||||
<div className="footer">
|
||||
<a
|
||||
href="/api/"
|
||||
href="api"
|
||||
target="_blank"
|
||||
className="footer"
|
||||
rel="noreferrer">
|
||||
|
@ -1,11 +1,14 @@
|
||||
Metadata-Version: 1.0
|
||||
Metadata-Version: 2.1
|
||||
Name: gradio
|
||||
Version: 2.4.2
|
||||
Version: 1.0.0a1
|
||||
Summary: Python library for easily interacting with trained machine learning models
|
||||
Home-page: https://github.com/gradio-app/gradio-UI
|
||||
Author: Abubakar Abid
|
||||
Author-email: a12d@stanford.edu
|
||||
License: Apache License 2.0
|
||||
Description: UNKNOWN
|
||||
Keywords: machine learning,visualization,reproducibility
|
||||
Platform: UNKNOWN
|
||||
License-File: LICENSE
|
||||
|
||||
UNKNOWN
|
||||
|
||||
|
@ -1,15 +1,15 @@
|
||||
Flask-Cors>=3.0.8
|
||||
Flask-Login
|
||||
Flask>=1.1.1
|
||||
analytics-python
|
||||
ffmpy
|
||||
flask-cachebuster
|
||||
markdown2
|
||||
matplotlib
|
||||
numpy
|
||||
pandas
|
||||
paramiko
|
||||
pillow
|
||||
pycryptodome
|
||||
pydub
|
||||
matplotlib
|
||||
pandas
|
||||
pillow
|
||||
ffmpy
|
||||
markdown2
|
||||
pycryptodome
|
||||
requests
|
||||
paramiko
|
||||
analytics-python
|
||||
Flask>=1.1.1
|
||||
Flask-Cors>=3.0.8
|
||||
flask-cachebuster
|
||||
Flask-Login
|
||||
|
@ -362,10 +362,11 @@
|
||||
var len_outputs = {{ len_outputs }};
|
||||
|
||||
var url = window.location.href;
|
||||
$('#api_url').html(url.concat("predict/"));
|
||||
$('#py_syntax_url').html(url.concat("predict/"));
|
||||
$('#curl_syntax_url').html(url.concat("predict/"));
|
||||
$('#js_syntax_url').html(url.concat("predict/"));
|
||||
var api_url = new URL('/predict', url).href
|
||||
$('#api_url').html(api_url);
|
||||
$('#py_syntax_url').html(api_url);
|
||||
$('#curl_syntax_url').html(api_url);
|
||||
$('#js_syntax_url').html(api_url);
|
||||
|
||||
$('#stripped_url').html(url.replace(/(^\w+:|^)\/\//, '').slice(0, -5));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user