From 4ff2750a5c1cd862d9c89264b7b8d6a442ef530d Mon Sep 17 00:00:00 2001 From: Ahmed Nassar Date: Mon, 17 Mar 2025 12:07:13 +0000 Subject: [PATCH] Update app.py --- app.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index b83d6a0..f467107 100644 --- a/app.py +++ b/app.py @@ -114,10 +114,9 @@ def model_inference( doctag_output = "" for new_text in streamer: - if "" in new_text: - continue # Skip it entirely - buffer += html.escape(new_text) - doctag_output += new_text + if new_text != "": + buffer += html.escape(new_text) + doctag_output += new_text yield buffer if any(tag in doctag_output for tag in ["", "", "", "", ""]):