Update app.py
Browse files
app.py
CHANGED
|
@@ -54,11 +54,13 @@ with gr.Blocks(theme="default") as demo:
|
|
| 54 |
|
| 55 |
with gr.Row():
|
| 56 |
with gr.Column():
|
| 57 |
-
rx_input = gr.Image(type="numpy", label="Sube tu RX")
|
| 58 |
-
|
|
|
|
| 59 |
with gr.Column():
|
| 60 |
resultado = gr.HTML(label="Resultado")
|
| 61 |
|
| 62 |
-
|
|
|
|
| 63 |
|
| 64 |
demo.launch()
|
|
|
|
| 54 |
|
| 55 |
with gr.Row():
|
| 56 |
with gr.Column():
|
| 57 |
+
rx_input = gr.Image(type="numpy", label="Sube tu RX")
|
| 58 |
+
boton_analizar = gr.Button("Analizar")
|
| 59 |
+
boton_limpiar = gr.Button("Limpiar")
|
| 60 |
with gr.Column():
|
| 61 |
resultado = gr.HTML(label="Resultado")
|
| 62 |
|
| 63 |
+
boton_analizar.click(fn=predecir, inputs=rx_input, outputs=resultado)
|
| 64 |
+
boton_limpiar.click(lambda: (None, None), inputs=[], outputs=[rx_input, resultado])
|
| 65 |
|
| 66 |
demo.launch()
|