This commit is contained in:
hailin 2025-07-08 18:32:46 +08:00
parent 0418b608f9
commit 3193ba42f9
1 changed files with 6 additions and 0 deletions

View File

@ -129,6 +129,12 @@ def toggle_run(
is_running
):
global should_stop # ✅ 加上这一行
# 🛑 判空逻辑:输入源 + 输出形式 至少一个
if not inputs and not output_choices:
msg = "[❌ 请选择至少一个输入源或输出形式]"
return msg, False, gr.update(value="Run Evaluation")
if not is_running:
should_stop = False
yield from run_eval(