Spaces:
Runtime error
Runtime error
fix: radio button visibility
Browse files- src/obs_eval_gradio.py +2 -4
src/obs_eval_gradio.py
CHANGED
@@ -394,8 +394,6 @@ def main():
|
|
394 |
visible=True,
|
395 |
lines=7
|
396 |
)
|
397 |
-
multimodal_radio.change(fn=change_audio_rubric, inputs=multimodal_radio, outputs=rubric_audio_input)
|
398 |
-
|
399 |
evaluate_button = gr.Button("Evaluate")
|
400 |
with gr.Column(scale=1):
|
401 |
video_output_box = gr.Textbox(
|
@@ -409,8 +407,6 @@ def main():
|
|
409 |
interactive=False,
|
410 |
visible=True
|
411 |
)
|
412 |
-
multimodal_radio.change(fn=change_audio_eval, inputs=multimodal_radio, outputs=audio_output_box)
|
413 |
-
|
414 |
|
415 |
gr.Markdown("## 3rd STEP. Summarize and Get Result")
|
416 |
with gr.Row():
|
@@ -427,6 +423,8 @@ def main():
|
|
427 |
with gr.Column(scale=1):
|
428 |
output_box_fin_fin = gr.Textbox(label="Final Evaluation", lines=10, interactive=True)
|
429 |
|
|
|
|
|
430 |
|
431 |
process_button.click(fn=validate_api_key, inputs=api_key_input, outputs=None).success(fn=show_batches, inputs=[video_upload, batch_size, total_batch_percent], outputs=gallery).success(fn=show_audio_transcript, inputs=[video_upload, api_key_input], outputs=transcript_box)
|
432 |
if multimodal_radio.value == 'Video + Audio':
|
|
|
394 |
visible=True,
|
395 |
lines=7
|
396 |
)
|
|
|
|
|
397 |
evaluate_button = gr.Button("Evaluate")
|
398 |
with gr.Column(scale=1):
|
399 |
video_output_box = gr.Textbox(
|
|
|
407 |
interactive=False,
|
408 |
visible=True
|
409 |
)
|
|
|
|
|
410 |
|
411 |
gr.Markdown("## 3rd STEP. Summarize and Get Result")
|
412 |
with gr.Row():
|
|
|
423 |
with gr.Column(scale=1):
|
424 |
output_box_fin_fin = gr.Textbox(label="Final Evaluation", lines=10, interactive=True)
|
425 |
|
426 |
+
multimodal_radio.change(fn=change_audio_rubric, inputs=multimodal_radio, outputs=rubric_audio_input)
|
427 |
+
multimodal_radio.change(fn=change_audio_eval, inputs=multimodal_radio, outputs=audio_output_box)
|
428 |
|
429 |
process_button.click(fn=validate_api_key, inputs=api_key_input, outputs=None).success(fn=show_batches, inputs=[video_upload, batch_size, total_batch_percent], outputs=gallery).success(fn=show_audio_transcript, inputs=[video_upload, api_key_input], outputs=transcript_box)
|
430 |
if multimodal_radio.value == 'Video + Audio':
|