shukdevdatta123 commited on
Commit
b69685a
·
verified ·
1 Parent(s): 610a3c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -173,8 +173,8 @@ with gr.Blocks() as demo:
173
  pdf_button = gr.Button("Ask")
174
 
175
  with gr.Tab("Voice Chat"):
176
- # Record Audio Component for Voice Chat
177
- audio_record = gr.Audio(label="Record your Voice", type="bytes", source="microphone", show_label=True)
178
  # Upload Audio File Component
179
  audio_upload = gr.File(label="Or Upload an Audio File", type="file", file_types=["audio/wav", "audio/mp3"])
180
  audio_query = gr.Textbox(label="Ask about the transcription")
 
173
  pdf_button = gr.Button("Ask")
174
 
175
  with gr.Tab("Voice Chat"):
176
+ # Record Audio Component for Voice Chat (No 'source' argument needed)
177
+ audio_record = gr.Audio(label="Record your Voice", type="bytes", show_label=True)
178
  # Upload Audio File Component
179
  audio_upload = gr.File(label="Or Upload an Audio File", type="file", file_types=["audio/wav", "audio/mp3"])
180
  audio_query = gr.Textbox(label="Ask about the transcription")