Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -344,7 +344,7 @@ def transcribe(stream, new_chunk):
|
|
344 |
print(len(prompt.strip().split()))
|
345 |
print(prompt)
|
346 |
asr_output_str=prompt
|
347 |
-
yield (stream,asr_output_str,text_str, audio_output)
|
348 |
print("--- %s seconds ---" % (time.time() - start_time))
|
349 |
# prompt=ASR_model.transcribe(array)["text"].strip()
|
350 |
chat.append({"role": user_role, "content": prompt})
|
@@ -376,7 +376,7 @@ def transcribe(stream, new_chunk):
|
|
376 |
# audio_output=None
|
377 |
text_str1=text_str
|
378 |
|
379 |
-
|
380 |
|
381 |
# demo = gr.Interface(
|
382 |
# transcribe,
|
|
|
344 |
print(len(prompt.strip().split()))
|
345 |
print(prompt)
|
346 |
asr_output_str=prompt
|
347 |
+
# yield (stream,asr_output_str,text_str, audio_output)
|
348 |
print("--- %s seconds ---" % (time.time() - start_time))
|
349 |
# prompt=ASR_model.transcribe(array)["text"].strip()
|
350 |
chat.append({"role": user_role, "content": prompt})
|
|
|
376 |
# audio_output=None
|
377 |
text_str1=text_str
|
378 |
|
379 |
+
return stream,asr_output_str,text_str1, audio_output
|
380 |
|
381 |
# demo = gr.Interface(
|
382 |
# transcribe,
|