Pijush2023 commited on
Commit
d5b9901
·
verified ·
1 Parent(s): 99f4d62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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