Moibe commited on
Commit
429bfd1
·
1 Parent(s): 55c6abd

Fix inputs outputs

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -96,16 +96,16 @@ 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
- def cambio(input):
100
 
101
  print("Ejecutando change...")
102
 
103
- return input
104
 
105
  with gr.Blocks(css="footer {visibility: hidden}") as main:
106
 
107
- lbl_msg.change(fn=cambio, inputs="otro texto de prueba")
108
- btn_buy.click(fn=cambio, inputs="texto de prueba", outputs=lbl_msg, api_name="greet")
109
 
110
  with gr.Row():
111
 
 
96
  btn_buy = gr.Button("Buy More", visible=True, size='lg')
97
  result_image = gr.Image()
98
 
99
+ def cambio():
100
 
101
  print("Ejecutando change...")
102
 
103
+ return "Verdadero"
104
 
105
  with gr.Blocks(css="footer {visibility: hidden}") as main:
106
 
107
+ #lbl_msg.change(fn=cambio, lbl_msg)
108
+ btn_buy.click(fn=cambio, outputs=lbl_msg)
109
 
110
  with gr.Row():
111