tatianija commited on
Commit
1cace20
·
verified ·
1 Parent(s): 5cd098a

Update app.py

Browse files

media processing test removed

Files changed (1) hide show
  1. app.py +0 -36
app.py CHANGED
@@ -903,42 +903,6 @@ with gr.Blocks(title="Intelligent Agent with Media Processing") as demo:
903
  gr.LoginButton()
904
  clear_btn = gr.Button("Clear Cache", variant="secondary")
905
 
906
- with gr.Tab("Media Processing Test"):
907
- gr.Markdown("### Test Image and Audio Processing")
908
-
909
- with gr.Row():
910
- with gr.Column():
911
- image_upload = gr.File(
912
- label="Upload Images",
913
- file_types=["image"],
914
- file_count="multiple"
915
- )
916
- audio_upload = gr.File(
917
- label="Upload Audio Files",
918
- file_types=["audio"],
919
- file_count="multiple"
920
- )
921
-
922
- with gr.Column():
923
- test_question = gr.Textbox(
924
- label="Question about the media",
925
- placeholder="What can you tell me about these files?",
926
- lines=3
927
- )
928
- test_btn = gr.Button("Process Media", variant="primary")
929
-
930
- test_output = gr.Textbox(
931
- label="Processing Result",
932
- lines=10,
933
- interactive=False
934
- )
935
-
936
- test_btn.click(
937
- fn=test_media_processing,
938
- inputs=[image_upload, audio_upload, test_question],
939
- outputs=test_output
940
- )
941
-
942
  with gr.Tab("Step 1: Fetch Questions"):
943
  gr.Markdown("### Fetch Questions from API")
944
  fetch_btn = gr.Button("Fetch Questions", variant="primary")
 
903
  gr.LoginButton()
904
  clear_btn = gr.Button("Clear Cache", variant="secondary")
905
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
906
  with gr.Tab("Step 1: Fetch Questions"):
907
  gr.Markdown("### Fetch Questions from API")
908
  fetch_btn = gr.Button("Fetch Questions", variant="primary")