Spaces:
Sleeping
Sleeping
SuperBigtoo
commited on
Commit
•
2f26e3f
1
Parent(s):
680ded3
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,8 @@ def greet(name):
|
|
5 |
|
6 |
with gr.Blocks() as demo:
|
7 |
|
|
|
|
|
8 |
iface = gr.Interface(
|
9 |
fn=greet,
|
10 |
inputs="text",
|
@@ -14,7 +16,8 @@ with gr.Blocks() as demo:
|
|
14 |
|
15 |
gr.Markdown("## Text Examples")
|
16 |
gr.Examples(
|
17 |
-
"
|
|
|
18 |
)
|
19 |
|
20 |
if __name__ == "__main__":
|
|
|
5 |
|
6 |
with gr.Blocks() as demo:
|
7 |
|
8 |
+
txt = gr.Textbox(label="Input", lines=2)
|
9 |
+
|
10 |
iface = gr.Interface(
|
11 |
fn=greet,
|
12 |
inputs="text",
|
|
|
16 |
|
17 |
gr.Markdown("## Text Examples")
|
18 |
gr.Examples(
|
19 |
+
["hi", "Adam"],
|
20 |
+
txt
|
21 |
)
|
22 |
|
23 |
if __name__ == "__main__":
|