Xenova HF Staff commited on
Commit
35dd5b0
·
1 Parent(s): 6362d9a

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +16 -14
index.html CHANGED
@@ -1,19 +1,21 @@
1
  <!DOCTYPE html>
2
  <html>
3
- <head>
4
  <meta charset="utf-8" />
5
  <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
19
  </html>
 
1
  <!DOCTYPE html>
2
  <html>
3
+ <head>
4
  <meta charset="utf-8" />
5
  <meta name="viewport" content="width=device-width" />
6
+ <title>Gradio-Lite: Serverless Gradio Running Entirely in Your Browser</title>
7
+
8
+ <script type="module" crossorigin src="https://cdn.jsdelivr.net/npm/@gradio/lite/dist/lite.js"></script>
9
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@gradio/lite/dist/lite.css" />
10
+ </head>
11
+ <body>
12
+ <gradio-lite>
13
+ import gradio as gr
14
+
15
+ def greet(name):
16
+ return "Hello, " + name + "!"
17
+
18
+ gr.Interface(greet, "textbox", "textbox").launch()
19
+ </gradio-lite>
20
+ </body>
21
  </html>