amir36 commited on
Commit
e991f14
·
1 Parent(s): dc7de94
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -1,15 +1,18 @@
1
  import gradio as gr
2
 
3
 
4
- def greet(name):
5
- return "Hello " + name + "!!"
6
 
7
 
8
  iface = gr.Interface(
9
  title="Dialogue Box",
10
  description="upload a comic and enter a dialogue",
11
  fn=greet,
12
- inputs="text",
 
 
 
13
  outputs="text"
14
  )
15
 
 
1
  import gradio as gr
2
 
3
 
4
+ def greet(name, place):
5
+ return "Hello " + name + " from " + place + "!!"
6
 
7
 
8
  iface = gr.Interface(
9
  title="Dialogue Box",
10
  description="upload a comic and enter a dialogue",
11
  fn=greet,
12
+ inputs=[
13
+ gr.Textbox(placeholder="in 1", value="in 1"),
14
+ gr.Textbox(placeholder="in 2", value="in 2"),
15
+ ],
16
  outputs="text"
17
  )
18