Update app.py
Browse files
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 |
-
|
| 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 |
-
|
| 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]
|