Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -307,4 +307,15 @@ with gr.Blocks(theme=theme) as interface:
|
|
307 |
gr.Markdown("## Relat贸rios de Tarefas (arquivos .xlsx)")
|
308 |
excel_files = gr.Files(label="Upload dos arquivos Excel", type="binary", file_count="multiple")
|
309 |
|
310 |
-
generate_btn = gr.Button("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
307 |
gr.Markdown("## Relat贸rios de Tarefas (arquivos .xlsx)")
|
308 |
excel_files = gr.Files(label="Upload dos arquivos Excel", type="binary", file_count="multiple")
|
309 |
|
310 |
+
generate_btn = gr.Button("Gerar Relat贸rio", variant="primary")
|
311 |
+
output_html = gr.HTML()
|
312 |
+
download_html_btn = gr.File(label="Download HTML Report")
|
313 |
+
download_pdf_btn = gr.File(label="Download PDF Report")
|
314 |
+
|
315 |
+
generate_btn.click(
|
316 |
+
fn=process_files,
|
317 |
+
inputs=[html_file, excel_files],
|
318 |
+
outputs=[output_html, download_html_btn, download_pdf_btn]
|
319 |
+
)
|
320 |
+
|
321 |
+
interface.launch()
|