Spaces:
Running
Running
File size: 690 Bytes
1f5f680 5b71a2f be713a5 5b71a2f 1f5f680 b1b5fc5 06463de c5d14f6 1d9da87 c5d14f6 b1b5fc5 c5d14f6 5b71a2f c5d14f6 5b71a2f 06463de 9aaa5be d125f21 732d837 b1b5fc5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
import gradio as gr
def greet(input1, input2):
print("Imprimiendo en Consola")
print("Ésto es input1: ", input1)
print("Ésto es input2: ", input2)
return input1
#def carga_consola():
# return "Hola Mundo"
#iface = gr.Interface(greet, gr.Video(height=200, width=200), "video")
#gr.show()
with gr.Blocks() as demo:
print("Imprimiendo en Arranque...")
with gr.Row():
input1 = gr.Image()
input2 = gr.Image()
output = gr.Image()
btn = gr.Button("Run")
btn.click(greet, inputs=[gr.Image(), gr.Image()], outputs="image")
#consola = gr.Textbox()
#demo.load(carga_consola, None, consola)
#demo.queue().launch()
demo.launch() |