Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -214,12 +214,13 @@ def process_audio_query(audio_input):
|
|
214 |
# Create Gradio interface for audio input and output
|
215 |
interface = gr.Interface(
|
216 |
fn=process_audio_query,
|
217 |
-
inputs=gr.Audio(
|
218 |
outputs=gr.Audio(type="filepath", autoplay=True),
|
219 |
-
#outputs="audio",
|
220 |
live=True,
|
221 |
-
description="Ask questions via audio and receive audio responses."
|
|
|
222 |
)
|
223 |
|
224 |
# Launch the Gradio app
|
225 |
interface.launch()
|
|
|
|
214 |
# Create Gradio interface for audio input and output
|
215 |
interface = gr.Interface(
|
216 |
fn=process_audio_query,
|
217 |
+
inputs=gr.Audio(source="microphone", type="numpy"),
|
218 |
outputs=gr.Audio(type="filepath", autoplay=True),
|
|
|
219 |
live=True,
|
220 |
+
description="Ask questions via audio and receive audio responses.",
|
221 |
+
allow_flagging="never" # Disables the Clear button
|
222 |
)
|
223 |
|
224 |
# Launch the Gradio app
|
225 |
interface.launch()
|
226 |
+
|