Spaces:
Runtime error
Runtime error
Commit
路
5026c72
1
Parent(s):
5739ec2
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def image_to_silhouette(image):
|
|
25 |
interface = gr.Interface(fn=image_to_silhouette, inputs="image", outputs="image", live=True)
|
26 |
|
27 |
# A帽adir bot贸n de submit
|
28 |
-
submit_button = interface.
|
29 |
|
30 |
# Funci贸n para manejar el evento de submit
|
31 |
def on_submit(inputs):
|
@@ -40,3 +40,4 @@ submit_button.on_submit(on_submit)
|
|
40 |
|
41 |
# Mostrar interfaz
|
42 |
interface.launch()
|
|
|
|
25 |
interface = gr.Interface(fn=image_to_silhouette, inputs="image", outputs="image", live=True)
|
26 |
|
27 |
# A帽adir bot贸n de submit
|
28 |
+
submit_button = interface.add_input("submit", input_type="submit", button_text="Convertir")
|
29 |
|
30 |
# Funci贸n para manejar el evento de submit
|
31 |
def on_submit(inputs):
|
|
|
40 |
|
41 |
# Mostrar interfaz
|
42 |
interface.launch()
|
43 |
+
|