Ridealist commited on
Commit
916b7c0
1 Parent(s): af33db6

fix: apply print value

Browse files
Files changed (1) hide show
  1. src/obs_eval_gradio.py +4 -2
src/obs_eval_gradio.py CHANGED
@@ -161,7 +161,8 @@ def show_audio_transcript(video_file, api_key):
161
 
162
 
163
  def change_audio_rubric(choice):
164
- if choice.value == "Video + Audio":
 
165
  return gr.Textbox(
166
  visible=False
167
  )
@@ -176,7 +177,8 @@ def change_audio_rubric(choice):
176
 
177
 
178
  def change_audio_eval(choice):
179
- if choice.value == "Video only":
 
180
  return gr.Textbox(
181
  visible=False,
182
  )
 
161
 
162
 
163
  def change_audio_rubric(choice):
164
+ print(choice)
165
+ if choice == "Video only":
166
  return gr.Textbox(
167
  visible=False
168
  )
 
177
 
178
 
179
  def change_audio_eval(choice):
180
+ print(choice)
181
+ if choice == "Video only":
182
  return gr.Textbox(
183
  visible=False,
184
  )