2 inputs
Browse files
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=
|
|
|
|
|
|
|
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 |
|