roundb commited on
Commit
b436eb9
Β·
verified Β·
1 Parent(s): 4a9de48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -749,10 +749,7 @@ with gr.Blocks(title="Dashboard SLA") as demo:
749
  btn_fact = gr.Button("⬇ CSV β€” Dados Calculados", variant="secondary", elem_classes=["btn-export"])
750
  file_fact = gr.File(label="", show_label=False)
751
 
752
- with gr.Column(scale=1):
753
- gr.Markdown("**Modelo Power BI** β€” Excel com 6 sheets (Fact + Dims + Pivots)")
754
- btn_excel = gr.Button("⬇ Excel β€” Power BI", variant="primary", elem_classes=["btn-export"])
755
- file_excel = gr.File(label="", show_label=False)
756
 
757
  # ── Legenda ──────────────────────────────────────────────────────────────
758
  gr.HTML("""
@@ -782,7 +779,7 @@ with gr.Blocks(title="Dashboard SLA") as demo:
782
  demo.load(fn=lambda: atualizar_vista('EM CURSO'), outputs=[tabela_out, kpi_out])
783
  btn_pivot.click(fn=exportar_csv_pivot, inputs=cat_selector, outputs=file_pivot)
784
  btn_fact.click(fn=exportar_csv_fact, inputs=cat_selector, outputs=file_fact)
785
- btn_excel.click(fn=exportar_excel_powerbi, outputs=file_excel)
786
 
787
  if __name__ == '__main__':
788
  demo.launch(
 
749
  btn_fact = gr.Button("⬇ CSV β€” Dados Calculados", variant="secondary", elem_classes=["btn-export"])
750
  file_fact = gr.File(label="", show_label=False)
751
 
752
+
 
 
 
753
 
754
  # ── Legenda ──────────────────────────────────────────────────────────────
755
  gr.HTML("""
 
779
  demo.load(fn=lambda: atualizar_vista('EM CURSO'), outputs=[tabela_out, kpi_out])
780
  btn_pivot.click(fn=exportar_csv_pivot, inputs=cat_selector, outputs=file_pivot)
781
  btn_fact.click(fn=exportar_csv_fact, inputs=cat_selector, outputs=file_fact)
782
+
783
 
784
  if __name__ == '__main__':
785
  demo.launch(