kamillkate commited on
Commit
7245871
·
verified ·
1 Parent(s): 07602e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -621,7 +621,7 @@ def transcribe_audio(
621
  token_count += 1
622
  elapsed = time.time() - start_time
623
  # Show streaming output with live stats, format for readability
624
- formatted_text = generated_text.replace('},', '},\n')
625
  streaming_output = f"--- 🔴 LIVE Streaming Output (tokens: {token_count}, time: {elapsed:.1f}s) ---\n{formatted_text}"
626
  yield streaming_output, "<div style='padding: 20px; text-align: center; color: #6c757d;'>⏳ Generating transcription... Audio segments will appear after completion.</div>"
627
 
 
621
  token_count += 1
622
  elapsed = time.time() - start_time
623
  # Show streaming output with live stats, format for readability
624
+ formatted_text = convert_to_traditional(generated_text.replace('},', '},\n'))
625
  streaming_output = f"--- 🔴 LIVE Streaming Output (tokens: {token_count}, time: {elapsed:.1f}s) ---\n{formatted_text}"
626
  yield streaming_output, "<div style='padding: 20px; text-align: center; color: #6c757d;'>⏳ Generating transcription... Audio segments will appear after completion.</div>"
627