AeroVortex commited on
Commit
b1a7420
·
verified ·
1 Parent(s): f82853a

Update index.html

Browse files
Files changed (1) hide show
  1. 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: 20px; font-family: sans-serif;">
20
- <h2>Client-Side AI Workspace</h2>
21
 
22
  <gradio-lite>
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(
29
- fn=process_prompt,
30
- inputs=gr.Textbox(label="Enter your prompt", placeholder="Type something..."),
31
- outputs=gr.Textbox(label="Output")
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>