GeorgeSherif commited on
Commit
30f604d
·
1 Parent(s): c2cc37e
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -135,8 +135,8 @@ def save_annotation(caption, session_data):
135
  dataset.push_to_hub(dataset_name)
136
  print("Pushed updated dataset")
137
 
138
- # Clear user's current image if the validation image has been annotated five times
139
- if ("val" not in image_id) or (annotation_count > 2):
140
  session_data["current_image"] = None
141
 
142
  # Fetch the next image
 
135
  dataset.push_to_hub(dataset_name)
136
  print("Pushed updated dataset")
137
 
138
+ # Clear user's current image if the validation image has been annotated twice
139
+ if ("val" not in image_id) or (annotation_count >= 2):
140
  session_data["current_image"] = None
141
 
142
  # Fetch the next image