Spaces:
Running
Running
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import numpy as np
|
| 2 |
+
import gradio as gr
|
| 3 |
+
import MOD_V_TCOND_Z4_008C
|
| 4 |
+
|
| 5 |
+
bloco = gr.Blocks()
|
| 6 |
+
|
| 7 |
+
with bloco:
|
| 8 |
+
with gr.Tabs():
|
| 9 |
+
with gr.TabItem(MOD_V_TCOND_Z4_008C.title):
|
| 10 |
+
gr.Markdown(MOD_V_TCOND_Z4_008C.description)
|
| 11 |
+
inputs = MOD_V_TCOND_Z4_008C.load_inputs()
|
| 12 |
+
text_button = gr.Button("Calcular")
|
| 13 |
+
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")]
|
| 14 |
+
text_button.click(MOD_V_TCOND_Z4_008C.execute, inputs=inputs, outputs=outputs)
|
| 15 |
+
|
| 16 |
+
bloco.launch()
|