Spaces:
Sleeping
Sleeping
Fix: Update group csv
Browse files
app.py
CHANGED
|
@@ -236,12 +236,14 @@ persistent_storage = Path('/data')
|
|
| 236 |
password_files = os.getenv("password_files")
|
| 237 |
|
| 238 |
|
| 239 |
-
possible_ids = {'Tiger-001': 0, '
|
| 240 |
-
'
|
| 241 |
-
'
|
| 242 |
-
'
|
| 243 |
-
'
|
| 244 |
-
'Cheetah-011': 5, '
|
|
|
|
|
|
|
| 245 |
#possible_ids = json.load(os.getenv("possible_ids"))
|
| 246 |
|
| 247 |
|
|
@@ -360,7 +362,7 @@ def deactivate_participant_id(participant_id, lets_go, total, previous_button, n
|
|
| 360 |
global file_list
|
| 361 |
global total_annotations
|
| 362 |
if participant_id in possible_ids.keys():
|
| 363 |
-
file_list = pd.read_csv(os.path.join(persistent_storage, 'files_to_annotate_2round', f'group_{possible_ids[participant_id]}.csv'), keep_default_na=False)
|
| 364 |
|
| 365 |
|
| 366 |
|
|
|
|
| 236 |
password_files = os.getenv("password_files")
|
| 237 |
|
| 238 |
|
| 239 |
+
possible_ids = {'Tiger-001': 0, 'Falcon-002': 0,
|
| 240 |
+
'Elephant-003': 1, 'Panther-004': 1,
|
| 241 |
+
'Zebra-005': 2, 'Wolf-006': 2,
|
| 242 |
+
'Koala-007': 3, 'Otter-008': 3,
|
| 243 |
+
'Leopard-009': 4, 'Panda-010': 4,
|
| 244 |
+
'Cheetah-011': 5, 'Gorilla-012': 5,
|
| 245 |
+
'Dolphin-013' : 6, 'Lynx-014': 6}
|
| 246 |
+
|
| 247 |
#possible_ids = json.load(os.getenv("possible_ids"))
|
| 248 |
|
| 249 |
|
|
|
|
| 362 |
global file_list
|
| 363 |
global total_annotations
|
| 364 |
if participant_id in possible_ids.keys():
|
| 365 |
+
file_list = pd.read_csv(os.path.join(persistent_storage, 'files_to_annotate_2round', f'group_{possible_ids[participant_id]}_v2.csv'), keep_default_na=False)
|
| 366 |
|
| 367 |
|
| 368 |
|