add prompt defence

This commit is contained in:
Kuro0911
2025-11-02 15:06:42 +08:00
parent 4b03f5db2d
commit 0fc0db3307
34 changed files with 1558 additions and 113 deletions

View File

@@ -70,7 +70,7 @@ def _get_hf_judge():
device = 0 if torch.cuda.is_available() else -1
dtype = _pick_dtype()
hf_token = HF_TOKEN
hf_token = "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"
if hf_token is None:
raise RuntimeError(
"❌ Hugging Face token not found. Set it with:\n"