Spaces:
Running
Running
Update index.html
Browse files- index.html +8 -1
index.html
CHANGED
|
@@ -4,9 +4,17 @@
|
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>AI Studio Lite</title>
|
|
|
|
| 7 |
<!-- Gradio-lite CSS and JS CDN -->
|
| 8 |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@gradio/lite/dist/lite.css" />
|
| 9 |
<script type="module" src="https://cdn.jsdelivr.net/npm/@gradio/lite/dist/lite.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
</head>
|
| 11 |
<body style="margin: 0; padding: 20px; font-family: sans-serif;">
|
| 12 |
<h2>Client-Side AI Workspace</h2>
|
|
@@ -15,7 +23,6 @@
|
|
| 15 |
import gradio as gr
|
| 16 |
|
| 17 |
def process_prompt(prompt_text):
|
| 18 |
-
# Pure Python logic running entirely in the browser via WebAssembly
|
| 19 |
return f"Processed locally in browser: {prompt_text}"
|
| 20 |
|
| 21 |
demo = gr.Interface(
|
|
|
|
| 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: 20px; font-family: sans-serif;">
|
| 20 |
<h2>Client-Side AI Workspace</h2>
|
|
|
|
| 23 |
import gradio as gr
|
| 24 |
|
| 25 |
def process_prompt(prompt_text):
|
|
|
|
| 26 |
return f"Processed locally in browser: {prompt_text}"
|
| 27 |
|
| 28 |
demo = gr.Interface(
|