update relpath of models

This commit is contained in:
wl-zhao
2024-10-20 10:04:06 +08:00
parent 58200be879
commit 83e1caa5fa
+1 -1
View File
@@ -46,7 +46,7 @@ def handle_model_info(ckpt_path):
item = {
"filename": filename,
"save_path": save_path,
"save_path": os.path.relpath(save_path, BASE_PATH),
"urls": urls,
}
return model_id, item