wangli commited on
Commit
d18d42a
1 Parent(s): 712b87e
Files changed (2) hide show
  1. .gitignore +3 -1
  2. app.py +7 -3
.gitignore CHANGED
@@ -1 +1,3 @@
1
- .idea/
 
 
 
1
+ .idea/
2
+ __pycache__/
3
+ flagged/
app.py CHANGED
@@ -1,7 +1,11 @@
1
  import gradio as gr
2
 
3
  def greet(input):
4
- return "Hello " + input + "!!"
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- iface.launch()
 
 
 
 
 
1
  import gradio as gr
2
 
3
  def greet(input):
4
+ return "Hello, " + input + "!"
5
 
6
+ gr.Interface(
7
+ fn=greet,
8
+ inputs=gr.Textbox(lines=1, placeholder="Name Here..."),
9
+ outputs="text",
10
+ title="Hello, World!",
11
+ ).launch()