Spaces:
Sleeping
Sleeping
Moibe
commited on
Commit
·
42c9bcd
1
Parent(s):
5082067
Toques finales
Browse files
app.py
CHANGED
|
@@ -4,9 +4,9 @@ import time
|
|
| 4 |
|
| 5 |
def compare(input1, input2):
|
| 6 |
|
| 7 |
-
print("
|
| 8 |
-
time.sleep(
|
| 9 |
return input1, input2
|
| 10 |
|
| 11 |
-
iface = gr.Interface(fn=compare, inputs=[gr.Image(), gr.Image()], outputs=ImageSlider(position=0.5,label='
|
| 12 |
iface.launch()
|
|
|
|
| 4 |
|
| 5 |
def compare(input1, input2):
|
| 6 |
|
| 7 |
+
print("Comparing...")
|
| 8 |
+
time.sleep(1)
|
| 9 |
return input1, input2
|
| 10 |
|
| 11 |
+
iface = gr.Interface(fn=compare, inputs=[gr.Image(), gr.Image()], outputs=ImageSlider(position=0.5, label='Comparación de 2 imágenes'))
|
| 12 |
iface.launch()
|