Spaces:
Runtime error
Runtime error
fix: radio button visibility by applying 'value' attribute
Browse files- src/obs_eval_gradio.py +2 -8
src/obs_eval_gradio.py
CHANGED
@@ -161,11 +161,8 @@ def show_audio_transcript(video_file, api_key):
|
|
161 |
|
162 |
|
163 |
def change_audio_rubric(choice):
|
164 |
-
if choice == "Video
|
165 |
return gr.Textbox(
|
166 |
-
lines=0,
|
167 |
-
placeholder="(Deprecated)",
|
168 |
-
interactive=False,
|
169 |
visible=False
|
170 |
)
|
171 |
else:
|
@@ -179,12 +176,9 @@ def change_audio_rubric(choice):
|
|
179 |
|
180 |
|
181 |
def change_audio_eval(choice):
|
182 |
-
if choice == "Video only":
|
183 |
return gr.Textbox(
|
184 |
-
lines=0,
|
185 |
visible=False,
|
186 |
-
placeholder="(Deprecated)",
|
187 |
-
interactive=False,
|
188 |
)
|
189 |
else:
|
190 |
return gr.Textbox(
|
|
|
161 |
|
162 |
|
163 |
def change_audio_rubric(choice):
|
164 |
+
if choice.value == "Video + Audio":
|
165 |
return gr.Textbox(
|
|
|
|
|
|
|
166 |
visible=False
|
167 |
)
|
168 |
else:
|
|
|
176 |
|
177 |
|
178 |
def change_audio_eval(choice):
|
179 |
+
if choice.value == "Video only":
|
180 |
return gr.Textbox(
|
|
|
181 |
visible=False,
|
|
|
|
|
182 |
)
|
183 |
else:
|
184 |
return gr.Textbox(
|