Spaces:
Sleeping
Sleeping
SuperBigtoo
commited on
Commit
·
680ded3
1
Parent(s):
ca305ab
Update app.py
Browse files
app.py
CHANGED
@@ -3,10 +3,19 @@ import gradio as gr
|
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
5 |
|
6 |
+
with gr.Blocks() as demo:
|
7 |
+
|
8 |
+
iface = gr.Interface(
|
9 |
+
fn=greet,
|
10 |
+
inputs="text",
|
11 |
+
outputs="text",
|
12 |
+
title="Title"
|
13 |
+
)
|
14 |
+
|
15 |
+
gr.Markdown("## Text Examples")
|
16 |
+
gr.Examples(
|
17 |
+
"Text_1"
|
18 |
+
)
|
19 |
+
|
20 |
+
if __name__ == "__main__":
|
21 |
+
demo.launch()
|