AeroVortex commited on
Commit
9f6d2e4
·
verified ·
1 Parent(s): fce7585

Update index.html

Browse files
Files changed (1) hide show
  1. 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
- <!-- Patched Gradio-lite CDN for Hugging Face Hub fix -->
9
- <link rel="stylesheet" href="https://gradio-lite-previews.s3.amazonaws.com/PINNED_HF_HUB/dist/lite.css" />
10
- <script type="module" src="https://gradio-lite-previews.s3.amazonaws.com/PINNED_HF_HUB/dist/lite.js"></script>
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>