Spaces:
Running
Running
Update index.html
Browse files- index.html +7 -16
index.html
CHANGED
|
@@ -4,31 +4,22 @@
|
|
| 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 |
-
<!-- Gradio-lite CSS and JS CDN -->
|
| 9 |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@gradio/lite/dist/lite.css" />
|
| 10 |
<script type="module" src="https://cdn.jsdelivr.net/npm/@gradio/lite/dist/lite.js"></script>
|
| 11 |
-
|
| 12 |
-
<!-- Configuration block to prevent dependency auto-resolution crashes -->
|
| 13 |
-
<script type="config">
|
| 14 |
-
{
|
| 15 |
-
"dependencies": []
|
| 16 |
-
}
|
| 17 |
-
</script>
|
| 18 |
</head>
|
| 19 |
-
<body style="margin: 0; padding:
|
| 20 |
-
<
|
| 21 |
|
| 22 |
<gradio-lite>
|
| 23 |
import gradio as gr
|
| 24 |
|
| 25 |
-
def
|
| 26 |
-
return f"
|
| 27 |
|
| 28 |
demo = gr.Interface(
|
| 29 |
-
fn=
|
| 30 |
-
inputs=gr.Textbox(label="
|
| 31 |
-
outputs=gr.Textbox(label="
|
| 32 |
)
|
| 33 |
demo.launch()
|
| 34 |
</gradio-lite>
|
|
|
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>AI Studio Lite</title>
|
|
|
|
|
|
|
| 7 |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@gradio/lite/dist/lite.css" />
|
| 8 |
<script type="module" src="https://cdn.jsdelivr.net/npm/@gradio/lite/dist/lite.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
</head>
|
| 10 |
+
<body style="margin: 0; padding: 16px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">
|
| 11 |
+
<h3 style="text-align: center; color: #333;">AI Studio Workspace</h3>
|
| 12 |
|
| 13 |
<gradio-lite>
|
| 14 |
import gradio as gr
|
| 15 |
|
| 16 |
+
def respond(message):
|
| 17 |
+
return f"Received on mobile: {message}"
|
| 18 |
|
| 19 |
demo = gr.Interface(
|
| 20 |
+
fn=respond,
|
| 21 |
+
inputs=gr.Textbox(label="Prompt", placeholder="Type your idea here..."),
|
| 22 |
+
outputs=gr.Textbox(label="Response")
|
| 23 |
)
|
| 24 |
demo.launch()
|
| 25 |
</gradio-lite>
|