Spaces:
Sleeping
Sleeping
Charles De Dampierre
commited on
Commit
·
c3ff3bf
1
Parent(s):
7e155c0
GDP per capita
Browse files- app.py +14 -4
- data/gdp_per_capita/Arabic world.png +3 -0
- data/gdp_per_capita/Chinese world.png +3 -0
- data/gdp_per_capita/Eastern Europe.png +3 -0
- data/gdp_per_capita/France.png +3 -0
- data/gdp_per_capita/German world.png +3 -0
- data/gdp_per_capita/Italy.png +3 -0
- data/gdp_per_capita/Japan.png +3 -0
- data/gdp_per_capita/Low countries.png +3 -0
- data/gdp_per_capita/Nordic countries.png +3 -0
- data/gdp_per_capita/Ottoman Turkey.png +3 -0
- data/gdp_per_capita/Portugal.png +3 -0
- data/gdp_per_capita/Spain.png +3 -0
- data/gdp_per_capita/United Kingdom.png +3 -0
- moving_pictures.sh +5 -0
app.py
CHANGED
@@ -77,6 +77,7 @@ if page == "Home":
|
|
77 |
"data/immaterial_index/figures_trends_R/results_occupations"
|
78 |
)
|
79 |
population_path = "data/population"
|
|
|
80 |
maps_path = "data/map_figures"
|
81 |
|
82 |
from region_list import region_list
|
@@ -95,6 +96,7 @@ if page == "Home":
|
|
95 |
"unseen_index_capita": f"{unseen_capita_index_path}/{region_key}.png",
|
96 |
"complexity_index": f"{complexity_index_path}/{region_key}.png",
|
97 |
"occupations_index": f"{occupations_index_path}/{region_key}.png",
|
|
|
98 |
"population_index": f"{population_path}/{region_key}.png",
|
99 |
}
|
100 |
|
@@ -163,16 +165,24 @@ if page == "Home":
|
|
163 |
use_column_width=True,
|
164 |
)
|
165 |
|
166 |
-
elif key == "complexity_index":
|
167 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
st.image(
|
169 |
Image.open(path),
|
170 |
caption=key.capitalize(),
|
171 |
use_column_width=True,
|
172 |
)
|
173 |
|
174 |
-
elif key == "
|
175 |
-
st.subheader("
|
176 |
st.image(
|
177 |
Image.open(path),
|
178 |
caption=key.capitalize(),
|
|
|
77 |
"data/immaterial_index/figures_trends_R/results_occupations"
|
78 |
)
|
79 |
population_path = "data/population"
|
80 |
+
gdp_per_capita_path = "data/gdp_per_capita"
|
81 |
maps_path = "data/map_figures"
|
82 |
|
83 |
from region_list import region_list
|
|
|
96 |
"unseen_index_capita": f"{unseen_capita_index_path}/{region_key}.png",
|
97 |
"complexity_index": f"{complexity_index_path}/{region_key}.png",
|
98 |
"occupations_index": f"{occupations_index_path}/{region_key}.png",
|
99 |
+
"gdp_per_capita_index": f"{gdp_per_capita_path}/{region_key}.png",
|
100 |
"population_index": f"{population_path}/{region_key}.png",
|
101 |
}
|
102 |
|
|
|
165 |
use_column_width=True,
|
166 |
)
|
167 |
|
168 |
+
# elif key == "complexity_index":
|
169 |
+
# st.subheader("Complexity Index")
|
170 |
+
# st.image(
|
171 |
+
# Image.open(path),
|
172 |
+
# caption=key.capitalize(),
|
173 |
+
# use_column_width=True,
|
174 |
+
# )
|
175 |
+
|
176 |
+
elif key == "occupations_index":
|
177 |
+
st.subheader("Occupation Index")
|
178 |
st.image(
|
179 |
Image.open(path),
|
180 |
caption=key.capitalize(),
|
181 |
use_column_width=True,
|
182 |
)
|
183 |
|
184 |
+
elif key == "gdp_per_capita_index":
|
185 |
+
st.subheader("GDP per capita")
|
186 |
st.image(
|
187 |
Image.open(path),
|
188 |
caption=key.capitalize(),
|
data/gdp_per_capita/Arabic world.png
ADDED
![]() |
Git LFS Details
|
data/gdp_per_capita/Chinese world.png
ADDED
![]() |
Git LFS Details
|
data/gdp_per_capita/Eastern Europe.png
ADDED
![]() |
Git LFS Details
|
data/gdp_per_capita/France.png
ADDED
![]() |
Git LFS Details
|
data/gdp_per_capita/German world.png
ADDED
![]() |
Git LFS Details
|
data/gdp_per_capita/Italy.png
ADDED
![]() |
Git LFS Details
|
data/gdp_per_capita/Japan.png
ADDED
![]() |
Git LFS Details
|
data/gdp_per_capita/Low countries.png
ADDED
![]() |
Git LFS Details
|
data/gdp_per_capita/Nordic countries.png
ADDED
![]() |
Git LFS Details
|
data/gdp_per_capita/Ottoman Turkey.png
ADDED
![]() |
Git LFS Details
|
data/gdp_per_capita/Portugal.png
ADDED
![]() |
Git LFS Details
|
data/gdp_per_capita/Spain.png
ADDED
![]() |
Git LFS Details
|
data/gdp_per_capita/United Kingdom.png
ADDED
![]() |
Git LFS Details
|
moving_pictures.sh
CHANGED
@@ -7,6 +7,11 @@ find data/immaterial_index -type f ! -name "*.png" -exec rm {} \;
|
|
7 |
cp -r ../figures_notebooks/figures/environment/population data/
|
8 |
find data/population -type f ! -name "*.png" -exec rm {} \;
|
9 |
|
|
|
|
|
|
|
|
|
|
|
10 |
# Map Figures
|
11 |
cp -r ../figures_notebooks/map_figures data/
|
12 |
find data/map_figures -type f ! -name "*.png" -exec rm {} \;
|
|
|
7 |
cp -r ../figures_notebooks/figures/environment/population data/
|
8 |
find data/population -type f ! -name "*.png" -exec rm {} \;
|
9 |
|
10 |
+
|
11 |
+
# Population Index
|
12 |
+
cp -r ../figures_notebooks/figures/environment/gdp_per_capita data/
|
13 |
+
find data/gdp_per_capita -type f ! -name "*.png" -exec rm {} \;
|
14 |
+
|
15 |
# Map Figures
|
16 |
cp -r ../figures_notebooks/map_figures data/
|
17 |
find data/map_figures -type f ! -name "*.png" -exec rm {} \;
|