Spaces:
Runtime error
Runtime error
hysts commited on
Commit ·
615e11c
1
Parent(s): 32f7a94
Add a file
Browse files
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 💩
|
|
| 4 |
colorFrom: green
|
| 5 |
colorTo: gray
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version: 3.17.
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
|
|
|
| 4 |
colorFrom: green
|
| 5 |
colorTo: gray
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 3.17.1
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
app.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
with gr.Blocks() as demo:
|
| 4 |
+
text1 = gr.Text()
|
| 5 |
+
text2 = gr.Text()
|
| 6 |
+
with gr.Row():
|
| 7 |
+
examples = [[str(i), 'a'] for i in range(10)]
|
| 8 |
+
gr.Examples(examples=examples,
|
| 9 |
+
inputs=[text1, text2],
|
| 10 |
+
examples_per_page=5)
|
| 11 |
+
demo.queue().launch()
|