Spaces:
Runtime error
Runtime error
Commit
路
ab6687a
1
Parent(s):
1cc99a8
Update app.py
Browse files
app.py
CHANGED
@@ -29,11 +29,11 @@ submit_button = interface.add_input("submit", input_type="submit", button_text="
|
|
29 |
|
30 |
# Funci贸n para manejar el evento de submit
|
31 |
def on_submit(inputs):
|
32 |
-
# Obtener imagen de la caja de entrada
|
33 |
-
image = inputs["image"]
|
34 |
-
# Convertir imagen a silueta y mostrar en la caja de salida
|
35 |
-
silhouette = image_to_silhouette(image)
|
36 |
-
return silhouette
|
37 |
|
38 |
# A帽adir evento de submit al bot贸n
|
39 |
submit_button.on_submit(on_submit)
|
|
|
29 |
|
30 |
# Funci贸n para manejar el evento de submit
|
31 |
def on_submit(inputs):
|
32 |
+
# Obtener imagen de la caja de entrada
|
33 |
+
image = inputs["image"]
|
34 |
+
# Convertir imagen a silueta y mostrar en la caja de salida
|
35 |
+
silhouette = image_to_silhouette(image)
|
36 |
+
return silhouette
|
37 |
|
38 |
# A帽adir evento de submit al bot贸n
|
39 |
submit_button.on_submit(on_submit)
|