forouzanfallah commited on
Commit
cf0dcf2
Β·
verified Β·
1 Parent(s): fefa85a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -680,7 +680,7 @@ def start_or_resume(name: str, email: str):
680
  imgs, ref_lr, names = _prep_images_for_round(filename, order_idx)
681
 
682
  # Show which images this user is assigned
683
- global_info = f" (Your images: {entry.get('completed_rounds', 0) + 1}-{min((entry.get('completed_rounds', 0) + 1) + (TARGET_PER_PERSON - completed - 1), len(available))} of {len(available)} total)"
684
 
685
  status = f"Round {completed + 1} / {TARGET_PER_PERSON} β€’ Step 1 / 2 β€” {STEP_A_INSTRUCTION}{global_info}"
686
 
@@ -1023,19 +1023,19 @@ if __name__ == "__main__":
1023
  matching_images = get_available_images()
1024
  stats = get_global_stats()
1025
 
1026
- print(f"\nβœ… Found {len(matching_images)} matching images across all folders.")
1027
- if matching_images and len(matching_images) <= 10:
1028
- print("Matching images:", matching_images)
1029
 
1030
- print(f"\nπŸ“Š Global Progress:")
1031
- print(f" Total users registered: {stats['num_users']}")
1032
- print(f" Total images assigned: {stats['total_completed']}")
1033
- print(f" Complete cycles: {stats['complete_cycles']}")
1034
- print(f" Current cycle progress: {stats['images_in_current_cycle']}/{stats['total_images']}")
1035
 
1036
- print(f"\nπŸ“Š Configuration: {NUM_IMAGES_TO_RANK} images to rank ({NUM_MODEL_FOLDERS} models + 1 HR reference)")
1037
- print(f"🎯 Target: {TARGET_PER_PERSON} rounds per person")
1038
- print("\nLaunching app...")
1039
  demo.queue()
1040
  demo.launch()
1041
  except FileNotFoundError as e:
 
680
  imgs, ref_lr, names = _prep_images_for_round(filename, order_idx)
681
 
682
  # Show which images this user is assigned
683
+ global_info = f" (Your images: {entry.get('completed_rounds', 0) + 1}-{min((entry.get('completed_rounds', 0) + 1) + (TARGET_PER_PERSON - completed - 1), len(available))})"
684
 
685
  status = f"Round {completed + 1} / {TARGET_PER_PERSON} β€’ Step 1 / 2 β€” {STEP_A_INSTRUCTION}{global_info}"
686
 
 
1023
  matching_images = get_available_images()
1024
  stats = get_global_stats()
1025
 
1026
+ # print(f"\nβœ… Found {len(matching_images)} matching images across all folders.")
1027
+ # if matching_images and len(matching_images) <= 10:
1028
+ # print("Matching images:", matching_images)
1029
 
1030
+ # print(f"\nπŸ“Š Global Progress:")
1031
+ # print(f" Total users registered: {stats['num_users']}")
1032
+ # print(f" Total images assigned: {stats['total_completed']}")
1033
+ # print(f" Complete cycles: {stats['complete_cycles']}")
1034
+ # print(f" Current cycle progress: {stats['images_in_current_cycle']}/{stats['total_images']}")
1035
 
1036
+ # print(f"\nπŸ“Š Configuration: {NUM_IMAGES_TO_RANK} images to rank ({NUM_MODEL_FOLDERS} models + 1 HR reference)")
1037
+ # print(f"🎯 Target: {TARGET_PER_PERSON} rounds per person")
1038
+ # print("\nLaunching app...")
1039
  demo.queue()
1040
  demo.launch()
1041
  except FileNotFoundError as e: