Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,18 +9,30 @@ except ImportError:
|
|
| 9 |
|
| 10 |
# --- Default codes and metadata ---
|
| 11 |
DEFAULT_CODES = [
|
| 12 |
-
"
|
| 13 |
-
"
|
| 14 |
-
"
|
| 15 |
-
"
|
| 16 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
]
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
"
|
| 22 |
-
"
|
| 23 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
}
|
| 25 |
|
| 26 |
# --- File processing ---
|
|
|
|
| 9 |
|
| 10 |
# --- Default codes and metadata ---
|
| 11 |
DEFAULT_CODES = [
|
| 12 |
+
"Travail", # work, employment
|
| 13 |
+
"Famille", # family
|
| 14 |
+
"Formation", # education, training
|
| 15 |
+
"Association", # community / associations
|
| 16 |
+
"Santé", # health
|
| 17 |
+
"Politique", # politics
|
| 18 |
+
"Loisir", # leisure
|
| 19 |
+
"Religion", # religion / spiritual
|
| 20 |
+
"Émigration", # migration
|
| 21 |
+
"Autre", # other / miscellaneous
|
| 22 |
]
|
| 23 |
|
| 24 |
+
|
| 25 |
+
COLOR_MAP = {
|
| 26 |
+
"Travail": "lightblue",
|
| 27 |
+
"Famille": "lightgreen",
|
| 28 |
+
"Formation": "khaki",
|
| 29 |
+
"Association": "orange",
|
| 30 |
+
"Santé": "lightpink",
|
| 31 |
+
"Politique": "violet",
|
| 32 |
+
"Loisir": "lightcoral",
|
| 33 |
+
"Religion": "lightyellow",
|
| 34 |
+
"Émigration": "lightcyan",
|
| 35 |
+
"Autre": "gray",
|
| 36 |
}
|
| 37 |
|
| 38 |
# --- File processing ---
|