Spaces:
Runtime error
Runtime error
Moibe
commited on
Commit
•
5b71a2f
1
Parent(s):
fabeab4
two inputs
Browse files
app.py
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def greet(
|
4 |
print("Imprimiendo en Consola")
|
5 |
-
print("Ésto es
|
6 |
-
|
|
|
7 |
|
8 |
#def carga_consola():
|
9 |
# return "Hola Mundo"
|
@@ -14,10 +15,11 @@ def greet(input_video):
|
|
14 |
with gr.Blocks() as demo:
|
15 |
print("Imprimiendo en Arranque...")
|
16 |
with gr.Row():
|
17 |
-
input1 = gr.
|
18 |
-
|
|
|
19 |
btn = gr.Button("Run")
|
20 |
-
btn.click(greet,
|
21 |
|
22 |
#consola = gr.Textbox()
|
23 |
#demo.load(carga_consola, None, consola)
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
def greet(input1, input2):
|
4 |
print("Imprimiendo en Consola")
|
5 |
+
print("Ésto es input1: ", input1)
|
6 |
+
print("Ésto es input2: ", input2)
|
7 |
+
return input1
|
8 |
|
9 |
#def carga_consola():
|
10 |
# return "Hola Mundo"
|
|
|
15 |
with gr.Blocks() as demo:
|
16 |
print("Imprimiendo en Arranque...")
|
17 |
with gr.Row():
|
18 |
+
input1 = gr.Image()
|
19 |
+
input2 = gr.Image()
|
20 |
+
output = gr.Image()
|
21 |
btn = gr.Button("Run")
|
22 |
+
btn.click(greet, inputs=[gr.Image(), gr.Image()], outputs="image")
|
23 |
|
24 |
#consola = gr.Textbox()
|
25 |
#demo.load(carga_consola, None, consola)
|