PierreBrunelle commited on
Commit
38bb5e6
β€’
1 Parent(s): fc79458

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -204,6 +204,8 @@ with gr.Blocks(theme=gr.themes.Base()) as demo:
204
  with gr.Column(scale=1):
205
  video_file = gr.Video(
206
  label=f"Upload Call Recording (max {MAX_VIDEO_SIZE_MB} MB)",
 
 
207
  )
208
  process_btn = gr.Button("Analyze Call", variant="primary")
209
  status_output = gr.Textbox(label="Status", interactive=False)
@@ -217,7 +219,7 @@ with gr.Blocks(theme=gr.themes.Base()) as demo:
217
  output_insights = gr.Textbox(label="Key Takeaways", lines=20)
218
 
219
  with gr.TabItem("🎡 Audio"):
220
- output_audio = gr.Audio(label="Extracted Audio", type="filepath")
221
 
222
  with gr.TabItem("πŸ” Search"):
223
  with gr.Row():
@@ -266,4 +268,4 @@ with gr.Blocks(theme=gr.themes.Base()) as demo:
266
  clear.click(lambda: None, None, chatbot, queue=False)
267
 
268
  if __name__ == "__main__":
269
- demo.launch()
 
204
  with gr.Column(scale=1):
205
  video_file = gr.Video(
206
  label=f"Upload Call Recording (max {MAX_VIDEO_SIZE_MB} MB)",
207
+ include_audio=True,
208
+ autoplay=False
209
  )
210
  process_btn = gr.Button("Analyze Call", variant="primary")
211
  status_output = gr.Textbox(label="Status", interactive=False)
 
219
  output_insights = gr.Textbox(label="Key Takeaways", lines=20)
220
 
221
  with gr.TabItem("🎡 Audio"):
222
+ output_audio = gr.Audio(label="Extracted Audio", show_download_button=True)
223
 
224
  with gr.TabItem("πŸ” Search"):
225
  with gr.Row():
 
268
  clear.click(lambda: None, None, chatbot, queue=False)
269
 
270
  if __name__ == "__main__":
271
+ demo.launch(show_api=False)