idlebg commited on
Commit
28f621a
1 Parent(s): 7055030

missing token 2

Browse files

folder = convert_single(model_id, filename, folder, progress, token)

Files changed (1) hide show
  1. convert.py +1 -1
convert.py CHANGED
@@ -55,7 +55,7 @@ def convert(token: str, model_id: str, filename: str, progress=gr.Progress()):
55
  os.makedirs(folder)
56
  new_pr = None
57
  try:
58
- folder = convert_single(model_id, filename, folder, progress)
59
  progress(0.7, desc="Uploading to Hub")
60
  new_pr = api.upload_folder(folder_path=folder, path_in_repo="./", repo_id=model_id, repo_type="model", token=token, commit_message=pr_title, commit_description=COMMIT_MESSAGE.format(model_id), create_pr=True)
61
  pr_number = new_pr.split("%2F")[-1].split("/")[0]
 
55
  os.makedirs(folder)
56
  new_pr = None
57
  try:
58
+ folder = convert_single(model_id, filename, folder, progress, token)
59
  progress(0.7, desc="Uploading to Hub")
60
  new_pr = api.upload_folder(folder_path=folder, path_in_repo="./", repo_id=model_id, repo_type="model", token=token, commit_message=pr_title, commit_description=COMMIT_MESSAGE.format(model_id), create_pr=True)
61
  pr_number = new_pr.split("%2F")[-1].split("/")[0]