From 4558a8b64ad83df8a22f745efefc11aad8f1cfff Mon Sep 17 00:00:00 2001 From: Loganaden Velvindron Date: Sun, 28 Sep 2025 12:24:54 +0400 Subject: [PATCH] PIN revision to cryptographic hash Based on the recommendations to mitigate "silent injection" vulnerabilities/supply chain attacks (https://reddotrocket.github.io/silentinjection/) --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 50e1bf4..0a682b5 100644 --- a/main.py +++ b/main.py @@ -37,7 +37,7 @@ def listen(): from PIL import Image model_id = "vikhyatk/moondream2" -revision = "2024-05-20" +revision = "6b714b26eea5cbd9f31e4edb2541c170afa935ba" model = AutoModelForCausalLM.from_pretrained( model_id, trust_remote_code=True, revision=revision ) @@ -133,4 +133,4 @@ def facialExpression(emotion): except: print("Error in function") - """ \ No newline at end of file + """