czyang commited on
Commit
a23d157
·
verified ·
1 Parent(s): 1c325d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -4,7 +4,7 @@ from datetime import datetime
4
  import random
5
  import os
6
  from huggingface_hub import Repository
7
- random.seed(324)
8
 
9
  import subprocess
10
  # Set Git user information
@@ -50,6 +50,7 @@ random.shuffle(video_ids)
50
  questions = [
51
  "Which video's audio best matches the sound of {}?",
52
  "In which video is the timing of the audio best synchronized with what you can see in the video?",
 
53
  "Assuming the video is meant to sound like {}, which video has the best audio overall?"
54
  ]
55
  submissions_file = "user_responses/response.jsonl"
@@ -95,7 +96,8 @@ def save_responses(unique_submission, *responses):
95
  video_id: {
96
  'semantic': video_dict[video_id][response[0]],
97
  'sync': video_dict[video_id][response[1]],
98
- 'overall': video_dict[video_id][response[2]],
 
99
  }
100
  }
101
  result["responses"].append(pair_response)
@@ -139,7 +141,8 @@ def create_interface(unique_submission=False):
139
  with gr.Column():
140
  responses.append(gr.Radio(["Video 1", "Video 2"], label=questions[0].format(audio_prompt), value=None))
141
  responses.append(gr.Radio(["Video 1", "Video 2"], label=questions[1], value=None))
142
- responses.append(gr.Radio(["Video 1", "Video 2"], label=questions[2].format(audio_prompt), value=None))
 
143
 
144
  gr.Markdown("---")
145
 
 
4
  import random
5
  import os
6
  from huggingface_hub import Repository
7
+ random.seed(1234)
8
 
9
  import subprocess
10
  # Set Git user information
 
50
  questions = [
51
  "Which video's audio best matches the sound of {}?",
52
  "In which video is the timing of the audio best synchronized with what you can see in the video?",
53
+ "Ignoring the type of sound or whether it's timed to the video, which video has audio that sounds cleaner and more high definition?"
54
  "Assuming the video is meant to sound like {}, which video has the best audio overall?"
55
  ]
56
  submissions_file = "user_responses/response.jsonl"
 
96
  video_id: {
97
  'semantic': video_dict[video_id][response[0]],
98
  'sync': video_dict[video_id][response[1]],
99
+ 'quality': video_dict[video_id][response[2]],
100
+ 'overall': video_dict[video_id][response[3]],
101
  }
102
  }
103
  result["responses"].append(pair_response)
 
141
  with gr.Column():
142
  responses.append(gr.Radio(["Video 1", "Video 2"], label=questions[0].format(audio_prompt), value=None))
143
  responses.append(gr.Radio(["Video 1", "Video 2"], label=questions[1], value=None))
144
+ responses.append(gr.Radio(["Video 1", "Video 2"], label=questions[2], value=None))
145
+ responses.append(gr.Radio(["Video 1", "Video 2"], label=questions[3].format(audio_prompt), value=None))
146
 
147
  gr.Markdown("---")
148