Quant0 commited on
Commit
25b5f4c
·
verified ·
1 Parent(s): 0a0552d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -226,7 +226,7 @@ with gr.Blocks(title="Análisis de Opciones") as demo:
226
  ticker_input = gr.Textbox(label="Ticker (ej. GOOGL)", value="MSTR")
227
  expiration_date = gr.Textbox(label="Fecha de vencimiento (formato: aaaa-mm-dd)", value = "" )
228
  size_of_the_window = gr.Slider(minimum=1, maximum=30, value=16, step=1, label="Tamaño de la ventana")
229
- #btn_mostrar = gr.Button('Cargar Datos')
230
 
231
 
232
 
@@ -294,8 +294,7 @@ with gr.Blocks(title="Análisis de Opciones") as demo:
294
  inputs=[ticker_input, expiration_date, size_of_the_window],
295
  outputs=[output_file, output_msg]
296
  )
297
- gr.on(
298
- triggers = None,
299
  fn=generar_todo,
300
  inputs=[ticker_input, expiration_date, size_of_the_window],
301
  outputs= [ output_df_put, df_put_state, output_df_call, df_call_state]
 
226
  ticker_input = gr.Textbox(label="Ticker (ej. GOOGL)", value="MSTR")
227
  expiration_date = gr.Textbox(label="Fecha de vencimiento (formato: aaaa-mm-dd)", value = "" )
228
  size_of_the_window = gr.Slider(minimum=1, maximum=30, value=16, step=1, label="Tamaño de la ventana")
229
+ btn_mostrar = gr.Button('Cargar Datos')
230
 
231
 
232
 
 
294
  inputs=[ticker_input, expiration_date, size_of_the_window],
295
  outputs=[output_file, output_msg]
296
  )
297
+ btn_mostrar.click(
 
298
  fn=generar_todo,
299
  inputs=[ticker_input, expiration_date, size_of_the_window],
300
  outputs= [ output_df_put, df_put_state, output_df_call, df_call_state]