Spaces:
Running
Running
Update index.html
Browse files- index.html +9 -8
index.html
CHANGED
|
@@ -4,14 +4,14 @@
|
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>AI Studio Lite</title>
|
| 7 |
-
|
| 8 |
-
<!--
|
| 9 |
-
<
|
| 10 |
-
<
|
| 11 |
</head>
|
| 12 |
<body style="margin: 0; padding: 16px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">
|
| 13 |
-
<h3 style="text-align: center; color: #333;">AI Studio Workspace</h3>
|
| 14 |
-
|
| 15 |
<gradio-lite>
|
| 16 |
import gradio as gr
|
| 17 |
|
|
@@ -21,9 +21,10 @@ def respond(message):
|
|
| 21 |
demo = gr.Interface(
|
| 22 |
fn=respond,
|
| 23 |
inputs=gr.Textbox(label="Prompt", placeholder="Type your idea here..."),
|
| 24 |
-
outputs=gr.Textbox(label="Response")
|
|
|
|
| 25 |
)
|
| 26 |
demo.launch()
|
| 27 |
</gradio-lite>
|
| 28 |
</body>
|
| 29 |
-
</html>
|
|
|
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>AI Studio Lite</title>
|
| 7 |
+
|
| 8 |
+
<!-- Official Gradio Lite CDN -->
|
| 9 |
+
<script type="module" crossorigin src="https://cdn.jsdelivr.net/npm/@gradio/lite/dist/lite.js"></script>
|
| 10 |
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@gradio/lite/dist/lite.css" />
|
| 11 |
</head>
|
| 12 |
<body style="margin: 0; padding: 16px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">
|
| 13 |
+
<h3 style="text-align: center; color: #333; margin-bottom: 12px;">AI Studio Workspace</h3>
|
| 14 |
+
|
| 15 |
<gradio-lite>
|
| 16 |
import gradio as gr
|
| 17 |
|
|
|
|
| 21 |
demo = gr.Interface(
|
| 22 |
fn=respond,
|
| 23 |
inputs=gr.Textbox(label="Prompt", placeholder="Type your idea here..."),
|
| 24 |
+
outputs=gr.Textbox(label="Response"),
|
| 25 |
+
title="Simple Echo Demo"
|
| 26 |
)
|
| 27 |
demo.launch()
|
| 28 |
</gradio-lite>
|
| 29 |
</body>
|
| 30 |
+
</html>
|