Moibe commited on
Commit
fa51f2d
1 Parent(s): 5b71a2f

Remove blocks

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -12,17 +12,17 @@ def greet(input1, input2):
12
  #iface = gr.Interface(greet, gr.Video(height=200, width=200), "video")
13
  #gr.show()
14
 
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)
 
26
 
27
- #demo.queue().launch()
28
  demo.launch()
 
12
  #iface = gr.Interface(greet, gr.Video(height=200, width=200), "video")
13
  #gr.show()
14
 
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
+ demo = gr.Interface(
25
+ fn=greet, inputs=[gr.Image(), gr.Image()], outputs="image"
26
+ )
27
 
 
28
  demo.launch()