Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,7 +35,7 @@ def process_audio(audio):
|
|
| 35 |
# Gradio interface
|
| 36 |
with gr.Blocks() as demo:
|
| 37 |
gr.Markdown("# AI Support Agent: Car Dealership")
|
| 38 |
-
audio_input = gr.Audio(
|
| 39 |
text_output = gr.Textbox(label="Agent Response")
|
| 40 |
audio_output = gr.Audio(label="Listen to Response")
|
| 41 |
gr.Interface(fn=process_audio, inputs=audio_input, outputs=[text_output, audio_output]).launch()
|
|
|
|
| 35 |
# Gradio interface
|
| 36 |
with gr.Blocks() as demo:
|
| 37 |
gr.Markdown("# AI Support Agent: Car Dealership")
|
| 38 |
+
audio_input = gr.Audio(type="microphone", label="Speak to the Agent")
|
| 39 |
text_output = gr.Textbox(label="Agent Response")
|
| 40 |
audio_output = gr.Audio(label="Listen to Response")
|
| 41 |
gr.Interface(fn=process_audio, inputs=audio_input, outputs=[text_output, audio_output]).launch()
|