Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
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,
|