mirror of
https://github.com/gradio-app/gradio.git
synced 2025-04-06 12:30:29 +08:00
fix js cdn issues
This commit is contained in:
parent
a94611b50b
commit
cd0d0ee9eb
@ -10,8 +10,8 @@ iface = gr.Interface(
|
||||
sentence_builder,
|
||||
[
|
||||
gr.inputs.Slider(2, 20),
|
||||
gr.inputs.Dropdown(["cat", "dog", "bird", "ran", "swam", "ate", "slept"]),
|
||||
gr.inputs.Dropdown(["park", "zoo", "road"]),
|
||||
gr.inputs.Dropdown(["cat", "dog", "bird"]),
|
||||
gr.inputs.Radio(["park", "zoo", "road"]),
|
||||
gr.inputs.CheckboxGroup(["ran", "swam", "ate", "slept"]),
|
||||
gr.inputs.Checkbox(label="Is it the morning?"),
|
||||
],
|
||||
@ -26,4 +26,4 @@ iface = gr.Interface(
|
||||
)
|
||||
|
||||
if __name__ == "__main__":
|
||||
iface.launch(share=True)
|
||||
iface.launch()
|
||||
|
@ -25,7 +25,7 @@
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'UA-156449732-1');
|
||||
try {
|
||||
window.config = JSON.parse("{{ config|tojson }}");
|
||||
window.config = {{ config|tojson }};
|
||||
} catch (e) {
|
||||
window.config = {};
|
||||
}
|
||||
|
@ -60,7 +60,7 @@
|
||||
@apply bg-gray-100 hover:bg-gray-200 p-2;
|
||||
}
|
||||
.examples_table {
|
||||
@apply table-auto p-2 bg-gray-100 mt-4 rounded;
|
||||
@apply table-auto p-2 bg-gray-50 mt-4 rounded;
|
||||
tbody tr {
|
||||
@apply cursor-pointer;
|
||||
}
|
||||
@ -196,7 +196,7 @@
|
||||
@apply rounded-t;
|
||||
}
|
||||
.dropdown_item {
|
||||
@apply bg-gray-100 hover:bg-gray-400 hover:text-gray-50 py-2 px-4 block whitespace-nowrap cursor-pointer;
|
||||
@apply bg-gray-50 hover:bg-gray-400 hover:text-gray-50 py-2 px-4 block whitespace-nowrap cursor-pointer;
|
||||
}
|
||||
.dropdown_item:last-child {
|
||||
@apply rounded-b;
|
||||
|
@ -30,8 +30,12 @@ gradio/frontend/static/bundle.css.map
|
||||
gradio/frontend/static/bundle.js
|
||||
gradio/frontend/static/bundle.js.LICENSE.txt
|
||||
gradio/frontend/static/bundle.js.map
|
||||
gradio/frontend/static/css/0.3c510f42.chunk.css
|
||||
gradio/frontend/static/css/0.3c510f42.chunk.css.map
|
||||
gradio/frontend/static/css/0.chunk.css
|
||||
gradio/frontend/static/css/0.chunk.css.map
|
||||
gradio/frontend/static/css/main.c6f1eff9.css
|
||||
gradio/frontend/static/css/main.c6f1eff9.css.map
|
||||
gradio/frontend/static/js/0.chunk.js
|
||||
gradio/frontend/static/js/0.chunk.js.map
|
||||
gradio/frontend/static/media/logo_loading.e93acd82.jpg
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"files": {
|
||||
"static/css/0.chunk.css": "/static/css/0.chunk.css",
|
||||
"static/css/0.b65cbcc9.chunk.css": "/static/css/0.b65cbcc9.chunk.css",
|
||||
"static/css/0.3c510f42.chunk.css": "/static/css/0.3c510f42.chunk.css",
|
||||
"static/js/0.chunk.js": "/static/js/0.chunk.js",
|
||||
"static/js/0.chunk.js.map": "/static/js/0.chunk.js.map",
|
||||
"main.css": "/static/css/main.c6f1eff9.css",
|
||||
@ -10,7 +10,7 @@
|
||||
"index.html": "/index.html",
|
||||
"static/bundle.css.map": "/static/bundle.css.map",
|
||||
"static/bundle.js.LICENSE.txt": "/static/bundle.js.LICENSE.txt",
|
||||
"static/css/0.b65cbcc9.chunk.css.map": "/static/css/0.b65cbcc9.chunk.css.map",
|
||||
"static/css/0.3c510f42.chunk.css.map": "/static/css/0.3c510f42.chunk.css.map",
|
||||
"static/css/0.chunk.css.map": "/static/css/0.chunk.css.map",
|
||||
"static/css/main.c6f1eff9.css.map": "/static/css/main.c6f1eff9.css.map",
|
||||
"static/media/logo_loading.e93acd82.jpg": "/static/media/logo_loading.e93acd82.jpg"
|
||||
|
@ -1 +1,11 @@
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta property="og:url" content="https://gradio.app/"/><meta property="og:type" content="website"/><meta property="og:image" content="{{ config['thumbnail'] or '' }}"/><meta property="og:title" content="{{ config['title'] or '' }}"/><meta property="og:description" content="{{ config['description'] or '' }}"/><meta name="twitter:card" content="summary_large_image"><meta name="twitter:creator" content="@teamGradio"><meta name="twitter:title" content="{{ config['title'] or '' }}"><meta name="twitter:description" content="{{ config['description'] or '' }}"><meta name="twitter:image" content="{{ config['thumbnail'] or '' }}"><script async src="https://www.googletagmanager.com/gtag/js?id=UA-156449732-1"></script><script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag("js",new Date),gtag("config","UA-156449732-1");try{window.config=JSON.parse("{{ config|tojson }}")}catch(a){window.config={}}</script><title>Gradio</title><link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet"><link href="/static/bundle.css" rel="stylesheet"><link href="/static/css/main.c6f1eff9.css" rel="stylesheet"></head><body><div id="root"></div><script src="/static/bundle.js"></script></body></html>
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta property="og:url" content="https://gradio.app/"/><meta property="og:type" content="website"/><meta property="og:image" content="{{ config['thumbnail'] or '' }}"/><meta property="og:title" content="{{ config['title'] or '' }}"/><meta property="og:description" content="{{ config['description'] or '' }}"/><meta name="twitter:card" content="summary_large_image"><meta name="twitter:creator" content="@teamGradio"><meta name="twitter:title" content="{{ config['title'] or '' }}"><meta name="twitter:description" content="{{ config['description'] or '' }}"><meta name="twitter:image" content="{{ config['thumbnail'] or '' }}"><script async src="https://www.googletagmanager.com/gtag/js?id=UA-156449732-1"></script><script>window.dataLayer = window.dataLayer || [];
|
||||
function gtag() {
|
||||
dataLayer.push(arguments);
|
||||
}
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'UA-156449732-1');
|
||||
try {
|
||||
window.config = {{ config|tojson }};
|
||||
} catch (e) {
|
||||
window.config = {};
|
||||
}</script><title>Gradio</title><link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet"><link href="/static/bundle.css" rel="stylesheet"><link href="/static/css/main.c6f1eff9.css" rel="stylesheet"></head><body><div id="root"></div><script src="/static/bundle.js"></script></body></html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user