Quant0 commited on
Commit
28b8b73
路
verified 路
1 Parent(s): b9c560f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -18
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
- with gr.Row():
105
- output_df_put = gr.DataFrame(label="Datos de Opciones put", value=initial_df_put)
106
- output_df_call = gr.DataFrame(label="Datos de Opciones call", value=initial_df_call)
107
-
108
- output_file = gr.File(label="Archivo Excel")
109
- output_msg = gr.Label()
110
-
111
- btn_mostrar.click(
112
- fn=generar_todo,
113
- inputs=[ticker_input, expiration_date, size_of_the_window],
114
- outputs=[output_df_put, output_df_call]
115
- )
116
-
117
 
118
- btn_descargar.click(
119
- fn=exportar_a_excel_con_hojas,
120
- inputs=[ticker_input, expiration_date, size_of_the_window],
121
- outputs=[output_file, output_msg]
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)