SuperBigtoo commited on
Commit
680ded3
1 Parent(s): ca305ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -7
app.py CHANGED
@@ -3,10 +3,19 @@ import gradio as gr
3
  def greet(name):
4
  return "Hello " + name + "!!"
5
 
6
- iface = gr.Interface(
7
- fn=greet,
8
- inputs="text",
9
- outputs="text",
10
- title="Hot Dog? Or Not?"
11
- )
12
- iface.launch()
 
 
 
 
 
 
 
 
 
 
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()