Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def numero_por_extenso(numero):
|
|
32 |
return extenso_reais
|
33 |
|
34 |
# Função para calcular o valor do imóvel
|
35 |
-
def calcular_valor_imovel(nome="-", prof="Engenheiro Civil", ent="CREA", reg="-", data=None,
|
36 |
lograd="-", munic="-", tipo_imo="-", solic="-", finalidade="-", objetivo="-", press="-",
|
37 |
infra="Água Potável", serv="Coleta de Lixo", uso="Residencial", pad_reg="-", tipo_via="-", obs_gerais="-",
|
38 |
per="Sem destaque", ofe="Sem destaque", liq="Sem destaque",
|
@@ -202,7 +202,7 @@ def calcular_valor_imovel(nome="-", prof="Engenheiro Civil", ent="CREA", reg="-"
|
|
202 |
dados_resp = f"""
|
203 |
Responsável Técnico: {nome}
|
204 |
Profissão: {prof}
|
205 |
-
Entidade de Classe: {ent}
|
206 |
Número do registro: {reg}
|
207 |
"""
|
208 |
#####
|
@@ -327,7 +327,7 @@ def calcular_valor_imovel(nome="-", prof="Engenheiro Civil", ent="CREA", reg="-"
|
|
327 |
|
328 |
|
329 |
{nome} | {prof}
|
330 |
-
{ent}{reg}
|
331 |
"""
|
332 |
|
333 |
# -------------------------------------- #
|
@@ -382,6 +382,7 @@ inputs = [
|
|
382 |
gr.Textbox(label="Responsável Técnico", value="-"),
|
383 |
gr.Dropdown(["Engenheiro Civil", "Arquiteto e Urbanista", "Corretor de Imóveis"],label="Profissão", value="-"),
|
384 |
gr.Dropdown(["CREA", "CAU", "CRECI"],label="Entidade de Classe", value="-"),
|
|
|
385 |
gr.Number(label="Nº do registro", value="0"),
|
386 |
gr.Textbox(label="Data", value=""),
|
387 |
|
|
|
32 |
return extenso_reais
|
33 |
|
34 |
# Função para calcular o valor do imóvel
|
35 |
+
def calcular_valor_imovel(nome="-", prof="Engenheiro Civil", ent="CREA", uf = 'RS', reg="-", data=None,
|
36 |
lograd="-", munic="-", tipo_imo="-", solic="-", finalidade="-", objetivo="-", press="-",
|
37 |
infra="Água Potável", serv="Coleta de Lixo", uso="Residencial", pad_reg="-", tipo_via="-", obs_gerais="-",
|
38 |
per="Sem destaque", ofe="Sem destaque", liq="Sem destaque",
|
|
|
202 |
dados_resp = f"""
|
203 |
Responsável Técnico: {nome}
|
204 |
Profissão: {prof}
|
205 |
+
Entidade de Classe: {ent} {uf}
|
206 |
Número do registro: {reg}
|
207 |
"""
|
208 |
#####
|
|
|
327 |
|
328 |
|
329 |
{nome} | {prof}
|
330 |
+
{ent}{uf}{reg}
|
331 |
"""
|
332 |
|
333 |
# -------------------------------------- #
|
|
|
382 |
gr.Textbox(label="Responsável Técnico", value="-"),
|
383 |
gr.Dropdown(["Engenheiro Civil", "Arquiteto e Urbanista", "Corretor de Imóveis"],label="Profissão", value="-"),
|
384 |
gr.Dropdown(["CREA", "CAU", "CRECI"],label="Entidade de Classe", value="-"),
|
385 |
+
gr.Dropdown(["AC", "AL", "AP", "AM", "BA", "CE", "DF", "ES", "GO", "MA", "MT", "MS", "MG", "PA", "PB", "PR", "PE", "PI", "RJ", "RN", "RS", "RO", "RR", "SC", "SP", "SE", "TO"],label="Unidade Federativa", value="RS"),
|
386 |
gr.Number(label="Nº do registro", value="0"),
|
387 |
gr.Textbox(label="Data", value=""),
|
388 |
|