2023-07-07 01:43:49 +08:00
|
|
|
<!doctype html>
|
|
|
|
<html
|
|
|
|
lang="en"
|
|
|
|
style="
|
2023-02-20 08:14:44 +08:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
min-height: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2023-07-07 01:43:49 +08:00
|
|
|
"
|
|
|
|
>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta
|
|
|
|
name="viewport"
|
2023-09-22 20:12:26 +08:00
|
|
|
content="width=device-width, initial-scale=1, shrink-to-fit=no"
|
2023-07-07 01:43:49 +08:00
|
|
|
/>
|
2022-02-01 21:45:55 +08:00
|
|
|
|
2024-01-31 03:40:21 +08:00
|
|
|
<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>
|
|
|
|
|
2023-07-07 01:43:49 +08:00
|
|
|
<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 '' }}" />
|
2022-05-04 05:44:17 +08:00
|
|
|
|
2023-10-31 12:46:02 +08:00
|
|
|
<script data-gradio-mode>
|
2023-07-07 01:43:49 +08:00
|
|
|
window.__gradio_mode__ = "app";
|
2023-09-08 06:18:34 +08:00
|
|
|
window.iFrameResizer = {
|
2023-09-19 12:17:06 +08:00
|
|
|
heightCalculationMethod: "taggedElement"
|
|
|
|
};
|
2024-04-10 21:15:26 +08:00
|
|
|
window.parent?.postMessage(
|
|
|
|
{ type: "SET_SCROLLING", enabled: false },
|
|
|
|
"*"
|
|
|
|
);
|
2023-07-07 01:43:49 +08:00
|
|
|
</script>
|
2022-05-04 05:44:17 +08:00
|
|
|
|
2024-06-20 16:38:40 +08:00
|
|
|
%gradio_config%%gradio_api_info%
|
2022-05-04 05:44:17 +08:00
|
|
|
|
2023-07-07 01:43:49 +08:00
|
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
|
|
<link
|
|
|
|
rel="preconnect"
|
|
|
|
href="https://fonts.gstatic.com"
|
|
|
|
crossorigin="anonymous"
|
|
|
|
/>
|
|
|
|
<script
|
2024-06-02 01:33:42 +08:00
|
|
|
src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js"
|
2023-07-07 01:43:49 +08:00
|
|
|
async
|
|
|
|
></script>
|
|
|
|
</head>
|
2022-02-01 21:45:55 +08:00
|
|
|
|
2023-07-07 01:43:49 +08:00
|
|
|
<body
|
|
|
|
style="
|
2023-02-20 08:14:44 +08:00
|
|
|
width: 100%;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-grow: 1;
|
2023-07-07 01:43:49 +08:00
|
|
|
"
|
|
|
|
>
|
|
|
|
<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");
|
2024-01-31 03:40:21 +08:00
|
|
|
|
2023-07-07 01:43:49 +08:00
|
|
|
if (ce[0]) {
|
|
|
|
ce[0].addEventListener("domchange", () => {
|
|
|
|
document.body.style.padding = "0";
|
|
|
|
});
|
2022-06-18 11:36:50 +08:00
|
|
|
document.body.style.padding = "0";
|
2023-07-07 01:43:49 +08:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|