Update app.py
Browse files
app.py
CHANGED
|
@@ -212,6 +212,10 @@ initial_df_call = generar_tabla("call", "MSTR", '', 16)
|
|
| 212 |
|
| 213 |
|
| 214 |
with gr.Blocks(title="Análisis de Opciones") as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 215 |
# Añade esta línea con la URL de tu imagen
|
| 216 |
gr.Image("https://cdn.prod.website-files.com/67174dcb1d43b06a0eae317e/672bbbc7a2b88045e5661994_logo-afi.svg", show_label=False)
|
| 217 |
|
|
@@ -289,10 +293,7 @@ with gr.Blocks(title="Análisis de Opciones") as demo:
|
|
| 289 |
inputs=[ticker_input, expiration_date, size_of_the_window],
|
| 290 |
outputs= [ output_df_put, output_df_call, df_call_state, df_put_state]
|
| 291 |
)
|
| 292 |
-
|
| 293 |
-
df_put_state = gr.State(value=initial_df_put)
|
| 294 |
-
df_call_state = gr.State(value=initial_df_call)
|
| 295 |
-
|
| 296 |
btn_plot.click(
|
| 297 |
fn=plot_opciones,
|
| 298 |
inputs=[df_put_state, df_call_state, ticker_input, expiration_date],
|
|
|
|
| 212 |
|
| 213 |
|
| 214 |
with gr.Blocks(title="Análisis de Opciones") as demo:
|
| 215 |
+
|
| 216 |
+
df_put_state = gr.State(value=initial_df_put)
|
| 217 |
+
df_call_state = gr.State(value=initial_df_call)
|
| 218 |
+
|
| 219 |
# Añade esta línea con la URL de tu imagen
|
| 220 |
gr.Image("https://cdn.prod.website-files.com/67174dcb1d43b06a0eae317e/672bbbc7a2b88045e5661994_logo-afi.svg", show_label=False)
|
| 221 |
|
|
|
|
| 293 |
inputs=[ticker_input, expiration_date, size_of_the_window],
|
| 294 |
outputs= [ output_df_put, output_df_call, df_call_state, df_put_state]
|
| 295 |
)
|
| 296 |
+
|
|
|
|
|
|
|
|
|
|
| 297 |
btn_plot.click(
|
| 298 |
fn=plot_opciones,
|
| 299 |
inputs=[df_put_state, df_call_state, ticker_input, expiration_date],
|