Update app.py
Browse files
app.py
CHANGED
@@ -570,8 +570,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as interfaz:
|
|
570 |
with gr.Tab("📊 Análisis y Reporte"):
|
571 |
estado_output = gr.Textbox(label="Estado", interactive=False)
|
572 |
graficos_output = gr.Plot(label="Gráficos de Análisis")
|
573 |
-
informe_output = gr.Markdown(elem_id="informe_output")
|
574 |
|
|
|
575 |
with gr.Row():
|
576 |
estilo_grafico_dropdown = gr.Dropdown(
|
577 |
choices=["Estilo 1", "Estilo 2", "Estilo 3", "Estilo 4"],
|
@@ -588,9 +588,13 @@ with gr.Blocks(theme=gr.themes.Soft()) as interfaz:
|
|
588 |
exportar_word_btn = gr.Button("💾 Exportar Informe Word", variant="primary")
|
589 |
exportar_latex_btn = gr.Button("💾 Exportar Informe LaTeX", variant="primary")
|
590 |
|
|
|
591 |
exportar_word_file = gr.File(label="Informe en Word")
|
592 |
exportar_latex_file = gr.File(label="Informe en LaTeX")
|
593 |
|
|
|
|
|
|
|
594 |
# Eventos
|
595 |
input_components = [tabla_output]
|
596 |
output_components = [estado_output, graficos_output, informe_output, tabla_output]
|
|
|
570 |
with gr.Tab("📊 Análisis y Reporte"):
|
571 |
estado_output = gr.Textbox(label="Estado", interactive=False)
|
572 |
graficos_output = gr.Plot(label="Gráficos de Análisis")
|
|
|
573 |
|
574 |
+
# Opciones y botones debajo del gráfico
|
575 |
with gr.Row():
|
576 |
estilo_grafico_dropdown = gr.Dropdown(
|
577 |
choices=["Estilo 1", "Estilo 2", "Estilo 3", "Estilo 4"],
|
|
|
588 |
exportar_word_btn = gr.Button("💾 Exportar Informe Word", variant="primary")
|
589 |
exportar_latex_btn = gr.Button("💾 Exportar Informe LaTeX", variant="primary")
|
590 |
|
591 |
+
with gr.Row():
|
592 |
exportar_word_file = gr.File(label="Informe en Word")
|
593 |
exportar_latex_file = gr.File(label="Informe en LaTeX")
|
594 |
|
595 |
+
# Informe al final
|
596 |
+
informe_output = gr.Markdown(elem_id="informe_output")
|
597 |
+
|
598 |
# Eventos
|
599 |
input_components = [tabla_output]
|
600 |
output_components = [estado_output, graficos_output, informe_output, tabla_output]
|