Spaces:
Runtime error
Runtime error
fix: radio button visibility by uninterative mode
Browse files- src/obs_eval_gradio.py +10 -2
src/obs_eval_gradio.py
CHANGED
@@ -162,7 +162,11 @@ def show_audio_transcript(video_file, api_key):
|
|
162 |
|
163 |
def change_audio_rubric(choice):
|
164 |
if choice == "Video only":
|
165 |
-
return gr.Textbox(
|
|
|
|
|
|
|
|
|
166 |
else:
|
167 |
return gr.Textbox(
|
168 |
label="3. Audio Evaluation Rubric (if needed)",
|
@@ -175,7 +179,11 @@ def change_audio_rubric(choice):
|
|
175 |
|
176 |
def change_audio_eval(choice):
|
177 |
if choice == "Video only":
|
178 |
-
return gr.Textbox(
|
|
|
|
|
|
|
|
|
179 |
else:
|
180 |
return gr.Textbox(
|
181 |
label="Audio Script Eval...",
|
|
|
162 |
|
163 |
def change_audio_rubric(choice):
|
164 |
if choice == "Video only":
|
165 |
+
return gr.Textbox(
|
166 |
+
placeholder="(Deprecated)",
|
167 |
+
interactive=False,
|
168 |
+
visible=False
|
169 |
+
)
|
170 |
else:
|
171 |
return gr.Textbox(
|
172 |
label="3. Audio Evaluation Rubric (if needed)",
|
|
|
179 |
|
180 |
def change_audio_eval(choice):
|
181 |
if choice == "Video only":
|
182 |
+
return gr.Textbox(
|
183 |
+
visible=False,
|
184 |
+
placeholder="(Deprecated)",
|
185 |
+
interactive=False,
|
186 |
+
)
|
187 |
else:
|
188 |
return gr.Textbox(
|
189 |
label="Audio Script Eval...",
|