Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|
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",
|