Update app.py
Browse files
app.py
CHANGED
|
@@ -101,25 +101,29 @@ with gr.Blocks(title="An谩lisis de Opciones") as demo:
|
|
| 101 |
with gr.Row():
|
| 102 |
btn_mostrar = gr.Button("Mostrar datos", )
|
| 103 |
btn_descargar = gr.Button("Descargar en Excel")
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
outputs=[output_df_put, output_df_call]
|
| 115 |
-
)
|
| 116 |
-
|
| 117 |
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 123 |
|
| 124 |
# Inicia la aplicaci贸n
|
| 125 |
demo.launch(share=True)
|
|
|
|
| 101 |
with gr.Row():
|
| 102 |
btn_mostrar = gr.Button("Mostrar datos", )
|
| 103 |
btn_descargar = gr.Button("Descargar en Excel")
|
| 104 |
+
|
| 105 |
+
with gr.Tab("Holding de Bitcoin"):
|
| 106 |
+
|
| 107 |
+
with gr.Row():
|
| 108 |
+
|
| 109 |
+
output_df_put = gr.DataFrame(label="Datos de Opciones put", value=initial_df_put)
|
| 110 |
+
output_df_call = gr.DataFrame(label="Datos de Opciones call", value=initial_df_call)
|
| 111 |
+
|
| 112 |
+
output_file = gr.File(label="Archivo Excel")
|
| 113 |
+
output_msg = gr.Label()
|
|
|
|
|
|
|
|
|
|
| 114 |
|
| 115 |
+
btn_mostrar.click(
|
| 116 |
+
fn=generar_todo,
|
| 117 |
+
inputs=[ticker_input, expiration_date, size_of_the_window],
|
| 118 |
+
outputs=[output_df_put, output_df_call]
|
| 119 |
+
)
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
btn_descargar.click(
|
| 123 |
+
fn=exportar_a_excel_con_hojas,
|
| 124 |
+
inputs=[ticker_input, expiration_date, size_of_the_window],
|
| 125 |
+
outputs=[output_file, output_msg]
|
| 126 |
+
)
|
| 127 |
|
| 128 |
# Inicia la aplicaci贸n
|
| 129 |
demo.launch(share=True)
|