Update index.html
Browse files- index.html +16 -14
index.html
CHANGED
|
@@ -1,19 +1,21 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html>
|
| 3 |
-
|
| 4 |
<meta charset="utf-8" />
|
| 5 |
<meta name="viewport" content="width=device-width" />
|
| 6 |
-
<title>
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
| 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>
|