Update app.py

This commit is contained in:
Ahmed Nassar 2025-03-17 12:07:13 +00:00 committed by system
parent 0511dd38cc
commit 4ff2750a5c
No known key found for this signature in database
GPG Key ID: 6A528E38E0733467
1 changed files with 3 additions and 4 deletions

3
app.py
View File

@ -114,8 +114,7 @@ def model_inference(
doctag_output = ""
for new_text in streamer:
if "<end_of_utterance>" in new_text:
continue # Skip it entirely
if new_text != "<end_of_utterance>":
buffer += html.escape(new_text)
doctag_output += new_text
yield buffer