File size: 7,075 Bytes
cdcce9b
 
 
 
 
 
 
88bbfa9
cdcce9b
 
10f8c17
cdcce9b
 
 
 
 
 
76387f9
cdcce9b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88bbfa9
 
 
39a894b
88bbfa9
39a894b
cdcce9b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10f8c17
 
 
 
 
 
cdcce9b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76387f9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import numpy as np
import gradio as gr
import MOD_V_AP_Z1_Z2_001A
import MOD_V_AP_Z1_Z2_001
#import MOD_V_SALA_Z1_002C
#import apartamentos
#import salas
import salas_2026
import salas_2025
import salas_2024
import aptos_2026
import aptos_2025
import aptos_2024
import MOD_V_SALA_Z1_002D_A
import MOD_V_SALA_Z1_002E


bloco = gr.Blocks()

with bloco:
    with gr.Tabs():
        with gr.TabItem(MOD_V_SALA_Z1_002E.title):
            gr.Markdown(MOD_V_SALA_Z1_002E.description)
            inputs = MOD_V_SALA_Z1_002E.load_inputs()
            text_button = gr.Button("Calcular")
            outputs = [gr.TextArea(lines=1, label="Valor do imóvel (R$/m²)"), gr.TextArea(lines=1, label="Limite Inferior do Intervalo de Confiança"), gr.TextArea(lines=1, label="Percentual Limite Inferior do IC"), gr.TextArea(lines=1, label="Limite Superior do Intervalo de Confiança"), gr.TextArea(lines=1, label="Percentual Limite Superior do IC"), gr.Image(label="Gráfico")]
            text_button.click(MOD_V_SALA_Z1_002E.execute, inputs=inputs, outputs=outputs)
        with gr.TabItem(MOD_V_SALA_Z1_002D_A.title):
            gr.Markdown(MOD_V_SALA_Z1_002D_A.description)
            inputs = MOD_V_SALA_Z1_002D_A.load_inputs()
            text_button = gr.Button("Calcular")
            outputs = [gr.TextArea(lines=1, label="Valor do imóvel (R$/m²)"), gr.TextArea(lines=1, label="Limite Inferior do Intervalo de Confiança"), gr.TextArea(lines=1, label="Percentual Limite Inferior do IC"), gr.TextArea(lines=1, label="Limite Superior do Intervalo de Confiança"), gr.TextArea(lines=1, label="Percentual Limite Superior do IC"), gr.Image(label="Gráfico")]
            text_button.click(MOD_V_SALA_Z1_002D_A.execute, inputs=inputs, outputs=outputs)
        with gr.TabItem(salas_2026.title):
            gr.Markdown(salas_2026.description)
            inputs = salas_2026.load_inputs()
            text_button = gr.Button("Calcular", variant="primary")
            outputs = [gr.TextArea(lines=1, label="Valor do imóvel (R$/m²)"), gr.components.File(label="Download Relatório em PDF")]
            text_button.click(salas_2026.execute_valuation, inputs=inputs, outputs=outputs)
        with gr.TabItem(salas_2025.title):
            gr.Markdown(salas_2025.description)
            inputs = salas_2025.load_inputs()
            text_button = gr.Button("Calcular")
            outputs = [gr.TextArea(lines=1, label="Valor do imóvel (R$/m²)"), gr.components.File(label="Download Relatório em PDF")]
            text_button.click(salas_2025.execute, inputs=inputs, outputs=outputs)
        with gr.TabItem(salas_2024.title):
            gr.Markdown(salas_2024.description)
            inputs = salas_2024.load_inputs()
            text_button = gr.Button("Calcular")
            outputs = [gr.TextArea(lines=1, label="Valor do imóvel (R$/m²)"), gr.components.File(label="Download Relatório em PDF")]
            text_button.click(salas_2024.execute, inputs=inputs, outputs=outputs)
        #with gr.TabItem(MOD_V_SALA_Z1_002C.title):
            #gr.Markdown(MOD_V_SALA_Z1_002C.description)
            #inputs = MOD_V_SALA_Z1_002C.load_inputs()
            #text_button = gr.Button("Calcular")
            #outputs = [gr.TextArea(lines=1, label="Valor do imóvel (R$/m²)"), gr.TextArea(lines=1, label="Limite Inferior do Intervalo de Confiança"), gr.TextArea(lines=1, label="Percentual Limite Inferior do IC"), gr.TextArea(lines=1, label="Limite Superior do Intervalo de Confiança"), gr.TextArea(lines=1, label="Percentual Limite Superior do IC"), gr.Image(label="Gráfico")]
            #text_button.click(MOD_V_SALA_Z1_002C.execute, inputs=inputs, outputs=outputs)
        with gr.TabItem(MOD_V_AP_Z1_Z2_001A.title):
            gr.Markdown(MOD_V_AP_Z1_Z2_001A.description)
            inputs = MOD_V_AP_Z1_Z2_001A.load_inputs()
            text_button = gr.Button("Calcular")
            outputs = [gr.TextArea(lines=1, label="Valor do imóvel (R$/m²)"), gr.TextArea(lines=1, label="Limite Inferior do Intervalo de Confiança"), gr.TextArea(lines=1, label="Percentual Limite Inferior do IC"), gr.TextArea(lines=1, label="Limite Superior do Intervalo de Confiança"), gr.TextArea(lines=1, label="Percentual Limite Superior do IC"), gr.Image(label="Gráfico"), gr.components.File(label="Download Relatório em PDF")]
            text_button.click(MOD_V_AP_Z1_Z2_001A.execute, inputs=inputs, outputs=outputs)
        with gr.TabItem(MOD_V_AP_Z1_Z2_001.title):
            gr.Markdown(MOD_V_AP_Z1_Z2_001.description)
            inputs = MOD_V_AP_Z1_Z2_001.load_inputs()
            text_button = gr.Button("Calcular")
            outputs = [gr.TextArea(lines=1, label="Valor do imóvel (R$/m²)"), gr.TextArea(lines=1, label="Limite Inferior do Intervalo de Confiança"), gr.TextArea(lines=1, label="Percentual Limite Inferior do IC"), gr.TextArea(lines=1, label="Limite Superior do Intervalo de Confiança"), gr.TextArea(lines=1, label="Percentual Limite Superior do IC"), gr.Image(label="Gráfico"), gr.components.File(label="Download Relatório em PDF")]
            text_button.click(MOD_V_AP_Z1_Z2_001.execute, inputs=inputs, outputs=outputs)
        with gr.TabItem(aptos_2026.title):
            gr.Markdown(aptos_2026.description)
            inputs = aptos_2026.load_inputs()
            text_button = gr.Button("Calcular")
            outputs = [gr.TextArea(lines=1, label="Valor do imóvel (R$/m²)"), gr.components.File(label="Download Relatório em PDF")]
            text_button.click(aptos_2026.avaliar_imovel, inputs=inputs, outputs=outputs)  
        with gr.TabItem(aptos_2025.title):
            gr.Markdown(aptos_2025.description)
            inputs = aptos_2025.load_inputs()
            text_button = gr.Button("Calcular")
            outputs = [gr.TextArea(lines=1, label="Valor do imóvel (R$/m²)"), gr.components.File(label="Download Relatório em PDF")]
            text_button.click(aptos_2025.execute, inputs=inputs, outputs=outputs)    
        with gr.TabItem(aptos_2024.title):
            gr.Markdown(aptos_2024.description)
            inputs = aptos_2024.load_inputs()
            text_button = gr.Button("Calcular")
            outputs = [gr.TextArea(lines=1, label="Valor do imóvel (R$/m²)"), gr.components.File(label="Download Relatório em PDF")]
            text_button.click(aptos_2024.execute, inputs=inputs, outputs=outputs)    
        #with gr.TabItem(apartamentos.title):
            #gr.Markdown(apartamentos.description)
            #inputs = apartamentos.load_inputs()
            #text_button = gr.Button("Calcular")
            #outputs = gr.TextArea(lines=1, label=apartamentos.output_label)
            #text_button.click(apartamentos.execute, inputs=inputs, outputs=outputs)
        #with gr.TabItem(salas.title):
            #gr.Markdown(salas.description)
            #inputs = salas.load_inputs()
            #text_button = gr.Button("Calcular")
            #outputs = gr.TextArea(lines=1, label=salas.output_label)
            #text_button.click(salas.execute, inputs=inputs, outputs=outputs)

bloco.launch()