adf0d17497
publish / version_or_publish (push) Has been cancelled
storybook-build / changes (push) Has been cancelled
storybook-build / :storybook-build (push) Has been cancelled
Sync Gradio Skills to Hugging Face / sync-skills (push) Has been cancelled
functional / changes (push) Has been cancelled
functional / build-frontend (push) Has been cancelled
functional / functional-test-SSR=false (push) Has been cancelled
functional / functional-reload (push) Has been cancelled
js / changes (push) Has been cancelled
js / js-test (push) Has been cancelled
docs-build / changes (push) Has been cancelled
docs-build / docs-build (push) Has been cancelled
docs-build / website-build (push) Has been cancelled
functional / functional-test-SSR=true (push) Has been cancelled
hygiene / hygiene-test (push) Has been cancelled
python / changes (push) Has been cancelled
python / build (push) Has been cancelled
python / test-ubuntu-latest-flaky (push) Has been cancelled
python / test-ubuntu-latest-not-flaky (push) Has been cancelled
python / test-windows-latest-flaky (push) Has been cancelled
python / test-windows-latest-not-flaky (push) Has been cancelled
125 lines
3.3 KiB
HTML
125 lines
3.3 KiB
HTML
<!doctype html>
|
|
<html
|
|
lang="en"
|
|
style="
|
|
margin: 0;
|
|
padding: 0;
|
|
min-height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
"
|
|
>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta
|
|
name="viewport"
|
|
content="width=device-width, initial-scale=1, shrink-to-fit=no"
|
|
/>
|
|
<meta property="og:title" content="Gradio" />
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:url" content="{url}" />
|
|
<meta property="og:description" content="Click to try out the app!" />
|
|
<meta
|
|
property="og:image"
|
|
content="https://raw.githubusercontent.com/gradio-app/gradio/main/js/_website/src/lib/assets/img/header-image.jpg"
|
|
/>
|
|
<meta name="twitter:card" content="summary_large_image" />
|
|
<meta name="twitter:creator" content="@Gradio" />
|
|
<meta name="twitter:title" content="Gradio" />
|
|
<meta name="twitter:description" content="Click to try out the app!" />
|
|
<meta
|
|
name="twitter:image"
|
|
content="https://raw.githubusercontent.com/gradio-app/gradio/main/js/_website/src/lib/assets/img/header-image.jpg"
|
|
/>
|
|
|
|
<style>
|
|
:root {
|
|
--bg: {{ config.get('body_css', {}).get('body_background_fill', 'white') }};
|
|
--col: {{ config.get('body_css', {}).get('body_text_color', '#1f2937') }};
|
|
--bg-dark: {{ config.get('body_css', {}).get('body_background_fill_dark', '#0b0f19') }};
|
|
--col-dark: {{ config.get('body_css', {}).get('body_text_color_dark', '#f3f4f6') }};
|
|
}
|
|
|
|
|
|
body {
|
|
background: var(--bg);
|
|
color: var(--col);
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
body {
|
|
background: var(--bg-dark);
|
|
color: var(--col-dark);
|
|
}
|
|
}
|
|
</style>
|
|
|
|
<script type="module" src="./src/main.ts"></script>
|
|
<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['simple_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['simple_description'] or '' }}"
|
|
/>
|
|
<meta name="twitter:image" content="{{ config['thumbnail'] or '' }}" />
|
|
|
|
%gradio_config%%gradio_api_info%
|
|
|
|
<script
|
|
src="{{ config.get('root', '') }}/static/js/iframeResizer.contentWindow.min.js"
|
|
async
|
|
></script>
|
|
<script data-gradio-mode>
|
|
window.__gradio_mode__ = "app";
|
|
window.iFrameResizer = {
|
|
autoResize: false,
|
|
sizeWidth: false
|
|
};
|
|
window.parent?.postMessage(
|
|
{ type: "SET_SCROLLING", enabled: false },
|
|
"*"
|
|
);
|
|
</script>
|
|
<link rel="manifest" href="/manifest.json" />
|
|
</head>
|
|
|
|
<body
|
|
style="
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-grow: 1;
|
|
"
|
|
>
|
|
<gradio-app
|
|
control_page_title="true"
|
|
embed="false"
|
|
eager="true"
|
|
style="display: flex; flex-direction: column; flex-grow: 1"
|
|
>
|
|
</gradio-app>
|
|
<script>
|
|
const ce = document.getElementsByTagName("gradio-app");
|
|
|
|
if (ce[0]) {
|
|
ce[0].addEventListener("domchange", () => {
|
|
document.body.style.padding = "0";
|
|
});
|
|
document.body.style.padding = "0";
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|