update error message

This commit is contained in:
wl-zhao
2024-10-17 16:26:45 +08:00
parent f2926099fe
commit 49fb34f250
+2
View File
@@ -25,6 +25,8 @@ def handle_model_info(ckpt_path):
model_id = metadata["id"]
else:
logging.info(f"computing sha256 of {ckpt_path}")
if not os.path.isfile(ckpt_path):
raise NotImplementedError(f"please install {ckpt_path} first!")
model_id = compute_sha256(ckpt_path)
data = {
"id": model_id,