use jsdeliver on share links, bundle output css and js

This commit is contained in:
Ali Abid 2021-05-28 09:16:25 -07:00
parent 187f198cc0
commit a94611b50b
11 changed files with 20 additions and 15 deletions

View File

@ -26,4 +26,4 @@ iface = gr.Interface(
)
if __name__ == "__main__":
iface.launch()
iface.launch(share=True)

View File

@ -1,7 +1,7 @@
{
"files": {
"static/css/0.chunk.css": "/static/css/0.chunk.css",
"static/css/0.71362d61.chunk.css": "/static/css/0.71362d61.chunk.css",
"static/css/0.b65cbcc9.chunk.css": "/static/css/0.b65cbcc9.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.71362d61.chunk.css.map": "/static/css/0.71362d61.chunk.css.map",
"static/css/0.b65cbcc9.chunk.css.map": "/static/css/0.b65cbcc9.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"

View File

@ -1,7 +1 @@
<!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');
window.config = {{ config|tojson }};</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>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>

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long