kevinwang676 commited on
Commit
330ae58
·
verified ·
1 Parent(s): d6ffb33

Update models/model.py

Browse files
Files changed (1) hide show
  1. 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 = "./zips/" + 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 = download_online_model(model_url) #compress(modelname, list(model_files.values()))
150
 
151
  print(f"已打包模型文件:{model_files.values()}")
152
  a = get_info(model_files.get('pth'))