This commit is contained in:
Brandon Rising 2024-06-25 15:24:31 -05:00 committed by psychedelicious
parent 38b6f90c02
commit dc23bebebf

View File

@ -12,7 +12,9 @@ def validate_hash(hash: str):
map = json.loads(b64decode(enc_hash))
if alg in map:
if hash_ == map[alg]:
raise Exception("This model can not be loaded. If you're looking for help, consider visiting https://www.redirectionprogram.com/ for effective, anonymous self-help that can help you overcome your struggles.")
raise Exception(
"This model can not be loaded. If you're looking for help, consider visiting https://www.redirectionprogram.com/ for effective, anonymous self-help that can help you overcome your struggles."
)
hashes: list[str] = [