Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,6 @@ import plotly.express as px
|
|
4 |
import plotly.graph_objects as go
|
5 |
import gradio as gr
|
6 |
|
7 |
-
#DATOS
|
8 |
-
|
9 |
-
|
10 |
cities_data = {
|
11 |
'Abancay': {
|
12 |
'desempleo_trimestral': [
|
@@ -1151,9 +1148,6 @@ cities_data = {
|
|
1151 |
}
|
1152 |
|
1153 |
|
1154 |
-
|
1155 |
-
#DATOS
|
1156 |
-
|
1157 |
COLORES = {
|
1158 |
'Total': '#2C3E50',
|
1159 |
'Hombres': '#3498DB',
|
@@ -1405,27 +1399,27 @@ with gr.Blocks(
|
|
1405 |
with gr.Tab("Análisis por Ciudad"):
|
1406 |
with gr.Column(elem_classes="card"):
|
1407 |
gr.Markdown("## 📍 Indicadores Clave", elem_classes="subheader")
|
1408 |
-
radar_plot = Plot()
|
1409 |
|
1410 |
with gr.Column(elem_classes="card"):
|
1411 |
gr.Markdown("## 📈 Tendencias Principales", elem_classes="subheader")
|
1412 |
with gr.Row():
|
1413 |
-
desempleo_plot = Plot()
|
1414 |
-
ingresos_plot = Plot()
|
1415 |
with gr.Row():
|
1416 |
-
informalidad_plot = Plot()
|
1417 |
-
actividad_plot = Plot()
|
1418 |
|
1419 |
with gr.Column(elem_classes="card"):
|
1420 |
gr.Markdown("## 📉 Brecha Salarial", elem_classes="subheader")
|
1421 |
-
brecha_plot = Plot()
|
1422 |
|
1423 |
with gr.Tab("Análisis Comparativo"):
|
1424 |
with gr.Column(elem_classes="card"):
|
1425 |
gr.Markdown("## 🏙️ Comparativa entre Ciudades", elem_classes="subheader")
|
1426 |
-
global_desempleo = Plot()
|
1427 |
-
global_ingresos = Plot()
|
1428 |
-
global_brecha = Plot()
|
1429 |
|
1430 |
@app.load()
|
1431 |
def cargar_inicial():
|
|
|
4 |
import plotly.graph_objects as go
|
5 |
import gradio as gr
|
6 |
|
|
|
|
|
|
|
7 |
cities_data = {
|
8 |
'Abancay': {
|
9 |
'desempleo_trimestral': [
|
|
|
1148 |
}
|
1149 |
|
1150 |
|
|
|
|
|
|
|
1151 |
COLORES = {
|
1152 |
'Total': '#2C3E50',
|
1153 |
'Hombres': '#3498DB',
|
|
|
1399 |
with gr.Tab("Análisis por Ciudad"):
|
1400 |
with gr.Column(elem_classes="card"):
|
1401 |
gr.Markdown("## 📍 Indicadores Clave", elem_classes="subheader")
|
1402 |
+
radar_plot = gr.Plot()
|
1403 |
|
1404 |
with gr.Column(elem_classes="card"):
|
1405 |
gr.Markdown("## 📈 Tendencias Principales", elem_classes="subheader")
|
1406 |
with gr.Row():
|
1407 |
+
desempleo_plot = gr.Plot()
|
1408 |
+
ingresos_plot = gr.Plot()
|
1409 |
with gr.Row():
|
1410 |
+
informalidad_plot = gr.Plot()
|
1411 |
+
actividad_plot = gr.Plot()
|
1412 |
|
1413 |
with gr.Column(elem_classes="card"):
|
1414 |
gr.Markdown("## 📉 Brecha Salarial", elem_classes="subheader")
|
1415 |
+
brecha_plot = gr.Plot()
|
1416 |
|
1417 |
with gr.Tab("Análisis Comparativo"):
|
1418 |
with gr.Column(elem_classes="card"):
|
1419 |
gr.Markdown("## 🏙️ Comparativa entre Ciudades", elem_classes="subheader")
|
1420 |
+
global_desempleo = gr.Plot()
|
1421 |
+
global_ingresos = gr.Plot()
|
1422 |
+
global_brecha = gr.Plot()
|
1423 |
|
1424 |
@app.load()
|
1425 |
def cargar_inicial():
|