Saif Rehman Nasir commited on
Commit
98f4015
·
1 Parent(s): 0a1d26c
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -367,7 +367,12 @@ def get_chatbot_response(audio_data):
367
 
368
  def chat_interface():
369
  with gr.Blocks() as demo:
370
- audio_input = gr.Audio(source="microphone", type="filepath", label="Speak")
 
 
 
 
 
371
  response_textbox = gr.Textbox(label="Response Text")
372
  audio_output = gr.Audio(label="Response Audio")
373
 
 
367
 
368
  def chat_interface():
369
  with gr.Blocks() as demo:
370
+ # audio_input = gr.Audio(source="microphone", type="filepath", label="Speak")
371
+ audio_input = gr.Audio(
372
+ sources="microphone",
373
+ type="numpy", # Get audio data and sample rate
374
+ label="Say Something...",
375
+ )
376
  response_textbox = gr.Textbox(label="Response Text")
377
  audio_output = gr.Audio(label="Response Audio")
378