Spaces:
Sleeping
Sleeping
Update models/model.py
Browse files- models/model.py +1 -1
models/model.py
CHANGED
@@ -146,7 +146,7 @@ def post_model(name, model_url, version, creator):
|
|
146 |
print("已找到.index模型文件")
|
147 |
|
148 |
md5_hash = calculate_md5(os.path.join(unzips_folder,model_files['pth']))
|
149 |
-
zipfile = modelname + ".zip" #compress(modelname, list(model_files.values()))
|
150 |
|
151 |
print(f"已打包模型文件:{model_files.values()}")
|
152 |
a = get_info(model_files.get('pth'))
|
|
|
146 |
print("已找到.index模型文件")
|
147 |
|
148 |
md5_hash = calculate_md5(os.path.join(unzips_folder,model_files['pth']))
|
149 |
+
zipfile = "./zips/" + modelname + ".zip" #compress(modelname, list(model_files.values()))
|
150 |
|
151 |
print(f"已打包模型文件:{model_files.values()}")
|
152 |
a = get_info(model_files.get('pth'))
|