Siddhant commited on
Commit
e1b43a3
1 Parent(s): 839fa9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -294,7 +294,7 @@ def transcribe(stream, new_chunk):
294
  print(audio_chunk.shape)
295
  print("--- %s seconds ---" % (time.time() - start_time))
296
  # yield (stream,output, audio_output)
297
- time.sleep((len(audio_chunk)/text2speech.fs)-0.2)
298
  curr_output = ""
299
  generated_text = output
300
 
@@ -314,7 +314,7 @@ def transcribe(stream, new_chunk):
314
  # audio_output=None
315
  text_str1=text_str
316
 
317
- return (stream,text_str1, audio_output)
318
 
319
  demo = gr.Interface(
320
  transcribe,
 
294
  print(audio_chunk.shape)
295
  print("--- %s seconds ---" % (time.time() - start_time))
296
  # yield (stream,output, audio_output)
297
+ # time.sleep((len(audio_chunk)/text2speech.fs)-0.2)
298
  curr_output = ""
299
  generated_text = output
300
 
 
314
  # audio_output=None
315
  text_str1=text_str
316
 
317
+ yield (stream,text_str1, audio_output)
318
 
319
  demo = gr.Interface(
320
  transcribe,