Spaces:
Running
Running
Update index.html
Browse files- index.html +3 -1
index.html
CHANGED
|
@@ -5,6 +5,8 @@
|
|
| 5 |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@gradio/[email protected]/dist/lite.css" />
|
| 6 |
</head>
|
| 7 |
<body>
|
|
|
|
|
|
|
| 8 |
<gradio-lite>
|
| 9 |
|
| 10 |
<gradio-requirements>
|
|
@@ -22,7 +24,7 @@ pipe = await pipeline('sentiment-analysis')
|
|
| 22 |
async def classify(text):
|
| 23 |
return await pipe(text)
|
| 24 |
|
| 25 |
-
demo = gr.Interface(classify, "textbox", "json")
|
| 26 |
demo.launch()
|
| 27 |
</gradio-file>
|
| 28 |
|
|
|
|
| 5 |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@gradio/[email protected]/dist/lite.css" />
|
| 6 |
</head>
|
| 7 |
<body>
|
| 8 |
+
<h2>Gradio-lite (Gradio running entirely in your browser!)</h2>
|
| 9 |
+
<h4>Try it out! Once the Gradio app loads (can take 10-15 seconds), disconnect your Wifi and the machine learning model will still work!</h4>
|
| 10 |
<gradio-lite>
|
| 11 |
|
| 12 |
<gradio-requirements>
|
|
|
|
| 24 |
async def classify(text):
|
| 25 |
return await pipe(text)
|
| 26 |
|
| 27 |
+
demo = gr.Interface(classify, "textbox", "json", examples=["It's a happy day in the neighborhood", "I'm an evil penguin", "It wasn't a bad film."])
|
| 28 |
demo.launch()
|
| 29 |
</gradio-file>
|
| 30 |
|