ShiwenNi commited on
Commit
06f4c1d
1 Parent(s): 983a0b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -1,7 +1,11 @@
1
  import gradio as gr
2
 
3
  def greet(name):
4
- return "Hello " + name + "!!"
5
 
6
- iface = gr.Interface(fn=greet, inputs1="text", inputs2="text", outputs="text")
7
- iface.launch()
 
 
 
 
 
1
  import gradio as gr
2
 
3
  def greet(name):
4
+ return "Hello " + name + "!"
5
 
6
+ demo = gr.Interface(
7
+ fn=greet,
8
+ inputs=gr.Textbox(lines=2, placeholder="Name Here..."),
9
+ outputs="text",
10
+ )
11
+ demo.launch()