File size: 330 Bytes
1b19dbe
8d948ce
5082067
1b19dbe
8d948ce
5082067
42c9bcd
 
8d948ce
1b19dbe
42c9bcd
5082067
1
2
3
4
5
6
7
8
9
10
11
12
13
import gradio as gr
from gradio_imageslider import ImageSlider
import time

def compare(input1, input2):

    print("Comparing...")
    time.sleep(1)
    return input1, input2

iface = gr.Interface(fn=compare, inputs=[gr.Image(), gr.Image()], outputs=ImageSlider(position=0.5, label='Comparación de 2 imágenes'))
iface.launch()