From f32175aa4813fb1406c3e1a172e18bf214bb65ed Mon Sep 17 00:00:00 2001 From: hailin Date: Fri, 1 Aug 2025 14:25:54 +0800 Subject: [PATCH] . --- meta_ui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta_ui.py b/meta_ui.py index e3f017d..69c8a51 100644 --- a/meta_ui.py +++ b/meta_ui.py @@ -162,9 +162,8 @@ def chat( txt = str(result).strip() # ✅ 推荐返回结构,自动渲染 + 自动 history 追加 - #yield {"text": txt}, log_state - #return - return txt, log_state + yield {"text": txt}, log_state + return else: while thread.is_alive(): try: @@ -211,6 +210,7 @@ with gr.Blocks(title="调试界面") as demo: rep_pen, pres_pen, stop_txt, api_choice, log_state], additional_outputs=[log_state], + streaming=True, type="messages" )