Spaces:
Sleeping
Sleeping
Test event listener
Browse files
app.py
CHANGED
@@ -96,8 +96,17 @@ lbl_msg = gr.Label("AI Engine ready...")
|
|
96 |
btn_buy = gr.Button("Buy More", visible=True, size='lg')
|
97 |
result_image = gr.Image()
|
98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
with gr.Blocks(css="footer {visibility: hidden}") as main:
|
100 |
|
|
|
|
|
|
|
101 |
with gr.Row():
|
102 |
|
103 |
lbl_credits = gr.Label()
|
@@ -115,7 +124,6 @@ with gr.Blocks(css="footer {visibility: hidden}") as main:
|
|
115 |
title="",
|
116 |
inputs=[gr.Image(), gr.Image()],
|
117 |
outputs=[result_image,lbl_msg, btn_buy],
|
118 |
-
#css="footer {visibility: hidden}",
|
119 |
)
|
120 |
|
121 |
main.launch(auth=authenticate)
|
|
|
96 |
btn_buy = gr.Button("Buy More", visible=True, size='lg')
|
97 |
result_image = gr.Image()
|
98 |
|
99 |
+
def cambio(input):
|
100 |
+
|
101 |
+
print("Ejecutando cambio...")
|
102 |
+
|
103 |
+
return input
|
104 |
+
|
105 |
with gr.Blocks(css="footer {visibility: hidden}") as main:
|
106 |
|
107 |
+
lbl_msg.change(fn=cambio)
|
108 |
+
btn_buy.click(fn=cambio, inputs="texto de prueba", outputs=lbl_msg, api_name="greet")
|
109 |
+
|
110 |
with gr.Row():
|
111 |
|
112 |
lbl_credits = gr.Label()
|
|
|
124 |
title="",
|
125 |
inputs=[gr.Image(), gr.Image()],
|
126 |
outputs=[result_image,lbl_msg, btn_buy],
|
|
|
127 |
)
|
128 |
|
129 |
main.launch(auth=authenticate)
|