Moibe commited on
Commit
5082067
·
1 Parent(s): 8d948ce

Tried compare videos

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -1,8 +1,12 @@
1
  import gradio as gr
2
  from gradio_imageslider import ImageSlider
 
3
 
4
  def compare(input1, input2):
 
 
 
5
  return input1, input2
6
 
7
  iface = gr.Interface(fn=compare, inputs=[gr.Image(), gr.Image()], outputs=ImageSlider(position=0.5,label='Colored image with slider-view'))
8
- iface.launch()
 
1
  import gradio as gr
2
  from gradio_imageslider import ImageSlider
3
+ import time
4
 
5
  def compare(input1, input2):
6
+
7
+ print("EStoy en def compare...")
8
+ time.sleep(5)
9
  return input1, input2
10
 
11
  iface = gr.Interface(fn=compare, inputs=[gr.Image(), gr.Image()], outputs=ImageSlider(position=0.5,label='Colored image with slider-view'))
12
+ iface.launch()