Joysw909 commited on
Commit
7479f4c
·
verified ·
1 Parent(s): 379aee4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -16,7 +16,7 @@ def build_pair_list():
16
  ])
17
  pairs = []
18
  for folder in subfolders:
19
- for _ in range(2): # 每个文件夹配对两次
20
  if random.random() < 0.5:
21
  pairs.append((MAIN_FOLDER, folder))
22
  else:
@@ -46,7 +46,7 @@ def init_evaluation():
46
  meta_a = {"model": folder_a, "path": path_a}
47
  meta_b = {"model": folder_b, "path": path_b}
48
  total = len(pairs)
49
- progress_text = f"Group 1 / {total} "
50
  return path_a, path_b, meta_a, meta_b, pairs, index, progress_text
51
 
52
 
@@ -146,7 +146,7 @@ def submit_evaluation(preference, a_harm, a_nat, a_crea, a_mus,
146
  path_a, path_b,
147
  new_meta_a, new_meta_b,
148
  pairs, next_index,
149
- f"Group {next_index + 1} / {total} ",
150
  status_msg,
151
  gr.update(visible=False),
152
  gr.update(interactive=True),
 
16
  ])
17
  pairs = []
18
  for folder in subfolders:
19
+ for _ in range(1): # 每个文件夹配对两次
20
  if random.random() < 0.5:
21
  pairs.append((MAIN_FOLDER, folder))
22
  else:
 
46
  meta_a = {"model": folder_a, "path": path_a}
47
  meta_b = {"model": folder_b, "path": path_b}
48
  total = len(pairs)
49
+ progress_text = f"For a better listening experience, we recommend wearing headphones during the study. \n To ensure the rigor of the experiment, please listen to at least the first 2 minutes of each song before making your evaluation. \n The entire study is expected to take approximately 20–30 minutes, and you will listen to 5 pairs of songs, 10 songs in total. \n\n Group 1 / {total} "
50
  return path_a, path_b, meta_a, meta_b, pairs, index, progress_text
51
 
52
 
 
146
  path_a, path_b,
147
  new_meta_a, new_meta_b,
148
  pairs, next_index,
149
+ f"For a better listening experience, we recommend wearing headphones during the study. \n To ensure the rigor of the experiment, please listen to at least the first 2 minutes of each song before making your evaluation. \n The entire study is expected to take approximately 20–30 minutes, and you will listen to 5 pairs of songs, 10 songs in total. \n\n Group {next_index + 1} / {total} ",
150
  status_msg,
151
  gr.update(visible=False),
152
  gr.update(interactive=True),