KiteWind / templates /gradio-lite /gradio-lite-template.html
gstaff's picture
Add comments with backlink to export templates.
e09e87e
raw
history blame
No virus
1.4 kB
<!DOCTYPE html>
<html>
<head>
<script type="module" crossorigin src="https://cdn.jsdelivr.net/npm/@gradio/lite/dist/lite.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@gradio/lite/dist/lite.css" />
</head>
<body>
<!-- This app was created with KiteWind Chat-assisted Web App Creator (https://huggingface.co/spaces/gstaff/KiteWind) -->
<div id="gradio-app"></div>
<script type="module">
const code = \`STARTING_CODE\`;
// Mount options defined here: https://github.com/gradio-app/gradio/blob/1d986217f6f4fc1829e528d2afe365635788204f/js/lite/index.html#L27
const appController = createGradioApp({
target: document.getElementById("gradio-app"),
code: code,
info: true,
container: true,
isEmbed: false,
initialHeight: "400px",
eager: false,
themeMode: null,
autoScroll: false,
controlPageTitle: false,
appMode: true
});
// Returned controller functions defined here:
// https://github.com/gradio-app/gradio/blob/1d986217f6f4fc1829e528d2afe365635788204f/js/app/src/lite/index.ts#L165
window.appController = appController;
</script>
</body>
</html>