shukdevdattaEX commited on
Commit
1c24579
Β·
verified Β·
1 Parent(s): a660b93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -11
app.py CHANGED
@@ -274,14 +274,13 @@ def create_interface():
274
  with gr.TabItem("🎀 Audio Chat"):
275
  with gr.Row():
276
  with gr.Column(scale=1):
277
- audio_input = gr.File(
278
  label="🎀 Audio Upload",
279
- file_types=[".wav", ".mp3", ".m4a", ".flac", ".ogg"],
280
- type="filepath"
281
  )
282
- audio_recorder = gr.Audio(
283
  label="πŸŽ™οΈ Record Audio",
284
- source="microphone",
285
  type="numpy"
286
  )
287
  audio_text_input = gr.Textbox(
@@ -313,14 +312,13 @@ def create_interface():
313
  file_types=[".pdf"],
314
  type="filepath"
315
  )
316
- combined_audio_input = gr.File(
317
  label="🎀 Audio Upload",
318
- file_types=[".wav", ".mp3", ".m4a", ".flac", ".ogg"],
319
- type="filepath"
320
  )
321
- combined_audio_recorder = gr.Audio(
322
  label="πŸŽ™οΈ Record Audio",
323
- source="microphone",
324
  type="numpy"
325
  )
326
  combined_submit_btn = gr.Button("πŸš€ Send All", variant="primary", size="lg", interactive=False)
@@ -436,7 +434,7 @@ def create_interface():
436
  )
437
  combined_clear_btn.click(clear_all_inputs,
438
  outputs=[combined_chatbot, combined_text_input,
439
- combined_pdf_input, combined_audio_input,
440
  combined_audio_recorder])
441
 
442
  gr.Markdown("""
 
274
  with gr.TabItem("🎀 Audio Chat"):
275
  with gr.Row():
276
  with gr.Column(scale=1):
277
+ audio_input = gr.Audio(
278
  label="🎀 Audio Upload",
279
+ type="filepath",
280
+ file_types=[".wav", ".mp3", ".m4a", ".flac", ".ogg"]
281
  )
282
+ audio_recorder = gr.Microphone(
283
  label="πŸŽ™οΈ Record Audio",
 
284
  type="numpy"
285
  )
286
  audio_text_input = gr.Textbox(
 
312
  file_types=[".pdf"],
313
  type="filepath"
314
  )
315
+ combined_audio_input = gr.Audio(
316
  label="🎀 Audio Upload",
317
+ type="filepath",
318
+ file_types=[".wav", ".mp3", ".m4a", ".flac", ".ogg"]
319
  )
320
+ combined_audio_recorder = gr.Microphone(
321
  label="πŸŽ™οΈ Record Audio",
 
322
  type="numpy"
323
  )
324
  combined_submit_btn = gr.Button("πŸš€ Send All", variant="primary", size="lg", interactive=False)
 
434
  )
435
  combined_clear_btn.click(clear_all_inputs,
436
  outputs=[combined_chatbot, combined_text_input,
437
+ combined_pdf_input, Updating combined_audio_input,
438
  combined_audio_recorder])
439
 
440
  gr.Markdown("""