Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def transcribe_and_respond(audio_file):
|
|
25 |
|
26 |
iface = gr.Interface(
|
27 |
fn=transcribe_and_respond,
|
28 |
-
inputs=gr.Audio(
|
29 |
outputs="text", # The output will be a text response
|
30 |
title="Voice Input for Transcription and Response",
|
31 |
description="Record your voice, and the model will respond naturally and informatively."
|
|
|
25 |
|
26 |
iface = gr.Interface(
|
27 |
fn=transcribe_and_respond,
|
28 |
+
inputs=gr.Audio(sources="microphone", type="filepath"), # Use the microphone for audio input
|
29 |
outputs="text", # The output will be a text response
|
30 |
title="Voice Input for Transcription and Response",
|
31 |
description="Record your voice, and the model will respond naturally and informatively."
|