This commit is contained in:
ystartgo 2026-02-15 20:50:50 +08:00
parent d262526450
commit 8f4a89f358
2 changed files with 4 additions and 4 deletions

View file

@ -95,7 +95,7 @@ _ZH_TW = {
"Send to notebook": "發送到筆記本",
"Send to Notebook": "發送到筆記本",
"Chat template": "聊天模板",
"Send": "傳送",
# duplicate key removed; keep single mapping for "Send"
"Regenerate (Ctrl + Enter)": "重新生成Ctrl + Enter",
"Continue (Alt + Enter)": "繼續Alt + Enter",
"Remove last reply (Ctrl + Shift + Backspace)": "移除上一則回覆Ctrl + Shift + Backspace",
@ -250,7 +250,7 @@ _ZH_TW = {
"top_k": "top_k Top-k",
"typical_p": "typical_p Typical-p",
"dry_multiplier": "dry 乘數",
"dry_allowed_length": "允許重複長度",
# duplicate key removed; keep prefixed form above
"Good morning!": "早安!",
"Good afternoon!": "午安!",
"Good evening!": "晚安!",

View file

@ -330,7 +330,7 @@ def download_model_wrapper(repo_id, specific_file, progress=gr.Progress(), retur
specific_file=specific_file
)
update_queue.put(("COMPLETED", f"Model successfully saved to `{output_folder}/`."))
except Exception as e:
except Exception:
tb_str = traceback.format_exc().replace('\n', '\n\n')
update_queue.put(("ERROR", tb_str))
@ -365,7 +365,7 @@ def download_model_wrapper(repo_id, specific_file, progress=gr.Progress(), retur
download_thread.join()
except Exception as e:
except Exception:
progress(0.0)
tb_str = traceback.format_exc().replace('\n', '\n\n')
yield tb_str