Quant0 commited on
Commit
2ed860f
路
verified 路
1 Parent(s): 25b5f4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -267,14 +267,13 @@ with gr.Blocks(title="An谩lisis de Opciones") as demo:
267
  '''
268
  with gr.Tab("Plots"):
269
 
270
- #btn_plot = gr.Button("Mostrar Plot")
271
 
272
  with gr.Row():
273
  output_plot1 = gr.Plot(label="Distribuci贸n de Volumen de las opciones")
274
  output_plot2 = gr.Plot(label = 'Volatilidad Impl铆cita por strike')
275
 
276
- gr.on(
277
- triggers = None,
278
  fn=plot_opciones,
279
  inputs=[df_put_state, df_call_state, ticker_input, expiration_date],
280
  outputs=[output_plot1, output_plot2]
 
267
  '''
268
  with gr.Tab("Plots"):
269
 
270
+ btn_plot = gr.Button("Mostrar Plot")
271
 
272
  with gr.Row():
273
  output_plot1 = gr.Plot(label="Distribuci贸n de Volumen de las opciones")
274
  output_plot2 = gr.Plot(label = 'Volatilidad Impl铆cita por strike')
275
 
276
+ btn_plot.click(
 
277
  fn=plot_opciones,
278
  inputs=[df_put_state, df_call_state, ticker_input, expiration_date],
279
  outputs=[output_plot1, output_plot2]