Persano commited on
Commit
a066d47
·
verified ·
1 Parent(s): 3b2d1c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -80,7 +80,7 @@ with gr.Blocks() as iface:
80
 
81
  # Botões
82
  gerar_roi_button = gr.Button("Gerar ROI")
83
- gerar_pdf_button = gr.Button("Gerar PDF")
84
 
85
  # Funções de callback para os botões
86
  gerar_roi_button.click(fn=calcular_gerar_roi, inputs=[valor_imovel, investimento_proprio, aluguel_mensal, tempo_anos, taxa_juros], outputs=roi_resultado)
@@ -90,7 +90,7 @@ with gr.Blocks() as iface:
90
  iface.title = "Cálculo de ROI de Aluguel"
91
  iface.description = "Insira os valores abaixo e calcule o retorno sobre investimento (ROI) de aluguel."
92
 
93
- # Criar link de download como botão
94
  pdf_file_output.update(visible=True)
95
 
96
  # Rodar a interface Gradio
 
80
 
81
  # Botões
82
  gerar_roi_button = gr.Button("Gerar ROI")
83
+ gerar_pdf_button = gr.Button("Gerar PDF", elem_id="pdf_button")
84
 
85
  # Funções de callback para os botões
86
  gerar_roi_button.click(fn=calcular_gerar_roi, inputs=[valor_imovel, investimento_proprio, aluguel_mensal, tempo_anos, taxa_juros], outputs=roi_resultado)
 
90
  iface.title = "Cálculo de ROI de Aluguel"
91
  iface.description = "Insira os valores abaixo e calcule o retorno sobre investimento (ROI) de aluguel."
92
 
93
+ # Mostrar link de download como botão após a geração do PDF
94
  pdf_file_output.update(visible=True)
95
 
96
  # Rodar a interface Gradio