anzorq commited on
Commit
b31256e
1 Parent(s): 6736116

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -51,7 +51,7 @@ def convert_and_push(radio_model_names, input_model, ckpt_name, token, path_in_r
51
  ckpt_path, revision = hf_utils.download_file(repo_id=model_id, filename=ckpt_name, token=token)
52
 
53
  # 2. Run the conversion script
54
- os.makedirs(model_id)
55
  subprocess.run(
56
  [
57
  "python3",
 
51
  ckpt_path, revision = hf_utils.download_file(repo_id=model_id, filename=ckpt_name, token=token)
52
 
53
  # 2. Run the conversion script
54
+ os.makedirs(model_id, exist_ok=True)
55
  subprocess.run(
56
  [
57
  "python3",