ngxson HF staff commited on
Commit
9aa3583
1 Parent(s): feaa097

fix downloads dir

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -108,6 +108,9 @@ def process_model(model_id, q_method, use_imatrix, imatrix_q_method, private_rep
108
 
109
  dl_pattern += [pattern]
110
 
 
 
 
111
  with tempfile.TemporaryDirectory(dir="downloads") as tmpdir:
112
  # Keep the model name as the dirname so the model name metadata is populated correctly
113
  local_dir = Path(tmpdir)/model_name
 
108
 
109
  dl_pattern += [pattern]
110
 
111
+ if not os.path.exists("downloads"):
112
+ os.makedirs("downloads")
113
+
114
  with tempfile.TemporaryDirectory(dir="downloads") as tmpdir:
115
  # Keep the model name as the dirname so the model name metadata is populated correctly
116
  local_dir = Path(tmpdir)/model_name