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