Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -247,7 +247,6 @@ def handle_voice_to_voice(audio):
|
|
247 |
logging.error(f"Error in handle_voice_to_voice: {e}")
|
248 |
return "Error processing the audio, please try again.", ""
|
249 |
|
250 |
-
|
251 |
# Define the Gradio interface
|
252 |
with gr.Blocks(theme="rawrsor1/Everforest") as demo:
|
253 |
audio_input = gr.Audio(sources=["microphone"], type='numpy', streaming=True, label="Speak to Ask")
|
@@ -262,7 +261,7 @@ with gr.Blocks(theme="rawrsor1/Everforest") as demo:
|
|
262 |
outputs=[audio_output, transcription_textbox]
|
263 |
).then(
|
264 |
fn=lambda: "",
|
265 |
-
outputs=transcription_textbox
|
266 |
)
|
267 |
|
268 |
# Launch the Gradio interface
|
|
|
247 |
logging.error(f"Error in handle_voice_to_voice: {e}")
|
248 |
return "Error processing the audio, please try again.", ""
|
249 |
|
|
|
250 |
# Define the Gradio interface
|
251 |
with gr.Blocks(theme="rawrsor1/Everforest") as demo:
|
252 |
audio_input = gr.Audio(sources=["microphone"], type='numpy', streaming=True, label="Speak to Ask")
|
|
|
261 |
outputs=[audio_output, transcription_textbox]
|
262 |
).then(
|
263 |
fn=lambda: "",
|
264 |
+
outputs=[transcription_textbox]
|
265 |
)
|
266 |
|
267 |
# Launch the Gradio interface
|