Spaces:
Running
on
A10G
Running
on
A10G
fix downloads dir
Browse files
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
|