fpessanha commited on
Commit
2cef16d
·
1 Parent(s): ad9bfb3

Fix: Error message around last example

Browse files
Files changed (1) hide show
  1. load_and_save.py +1 -1
load_and_save.py CHANGED
@@ -182,7 +182,7 @@ def next_example(annotations_df, file_list_df, emotions, confidence, comments, n
182
 
183
  else:
184
  annotations_df, ann_completed = save_annotation(annotations_df, file_list_df, emotions, confidence, comments, n_clicks, participant_id, ann_completed, current_index)
185
- if current_index < len(file_list_df):
186
  current_index += 1
187
  else:
188
  gr.Warning("This is the last example, well done!")
 
182
 
183
  else:
184
  annotations_df, ann_completed = save_annotation(annotations_df, file_list_df, emotions, confidence, comments, n_clicks, participant_id, ann_completed, current_index)
185
+ if current_index < len(file_list_df) - 1:
186
  current_index += 1
187
  else:
188
  gr.Warning("This is the last example, well done!")