Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -79,7 +79,7 @@ with gr.Blocks(title="Whisper, Vicuna, & TTS Demo") as demo: # Updated title
|
|
79 |
with gr.Tab("Transcribe & Synthesize"):
|
80 |
mic_input = gr.Audio(sources="microphone", type="filepath", label="Speak Here")
|
81 |
transcription_output = gr.Textbox(lines=5, label="Transcription and Vicuna Response")
|
82 |
-
|
83 |
transcription_state = gr.State(value="")
|
84 |
mic_input.change(
|
85 |
fn=process_audio, # Call the combined function
|
|
|
79 |
with gr.Tab("Transcribe & Synthesize"):
|
80 |
mic_input = gr.Audio(sources="microphone", type="filepath", label="Speak Here")
|
81 |
transcription_output = gr.Textbox(lines=5, label="Transcription and Vicuna Response")
|
82 |
+
audio_output = gr.Audio(label="Synthesized Speech", type="numpy") # Important: type="numpy"
|
83 |
transcription_state = gr.State(value="")
|
84 |
mic_input.change(
|
85 |
fn=process_audio, # Call the combined function
|