histlearn commited on
Commit
103922c
verified
1 Parent(s): 58d997a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -16
app.py CHANGED
@@ -298,8 +298,8 @@ with gr.Blocks(theme=theme) as interface:
298
  download_pdf = gr.File(label="Download PDF Report")
299
 
300
  with gr.Row(): # Crie uma nova linha para os bot玫es
301
- download_html_btn = gr.Button("Baixar Relat贸rio HTML", elem_id="download_html_btn")
302
- download_pdf_btn = gr.Button("Baixar Relat贸rio PDF", elem_id="download_pdf_btn")
303
 
304
  def wrapper(html_file, excel_files):
305
  html_content, html_path, pdf_path = processar_relatorio(html_file, excel_files)
@@ -311,18 +311,4 @@ with gr.Blocks(theme=theme) as interface:
311
  outputs=[output_html, download_html, download_pdf]
312
  )
313
 
314
- download_html_btn.click(
315
- fn=lambda x: x,
316
- inputs=[download_html],
317
- outputs=[download_html],
318
- _js="(x) => window.open(x)"
319
- )
320
-
321
- download_pdf_btn.click(
322
- fn=lambda x: x,
323
- inputs=[download_pdf],
324
- outputs=[download_pdf],
325
- _js="(x) => window.open(x)"
326
- )
327
-
328
  interface.launch()
 
298
  download_pdf = gr.File(label="Download PDF Report")
299
 
300
  with gr.Row(): # Crie uma nova linha para os bot玫es
301
+ download_html_btn = gr.Button("Baixar Relat贸rio HTML")
302
+ download_pdf_btn = gr.Button("Baixar Relat贸rio PDF")
303
 
304
  def wrapper(html_file, excel_files):
305
  html_content, html_path, pdf_path = processar_relatorio(html_file, excel_files)
 
311
  outputs=[output_html, download_html, download_pdf]
312
  )
313
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
314
  interface.launch()