tahirsher commited on
Commit
6154c9f
·
verified ·
1 Parent(s): 6014d0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ def chatbot(audio):
52
  # Gradio interface for the chatbot
53
  interface = gr.Interface(
54
  fn=chatbot,
55
- inputs=gr.Audio(source="microphone", type="filepath"), # Using microphone as input
56
  outputs=["text", gr.Audio(type="filepath")], # Text and audio output
57
  live=True,
58
  title="Voice-Enabled Chatbot",
 
52
  # Gradio interface for the chatbot
53
  interface = gr.Interface(
54
  fn=chatbot,
55
+ inputs=gr.Audio(type="filepath"), # Use microphone input without the 'source' argument
56
  outputs=["text", gr.Audio(type="filepath")], # Text and audio output
57
  live=True,
58
  title="Voice-Enabled Chatbot",