Wauplin HF staff commited on
Commit
5888100
1 Parent(s): 26a1157
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -141,7 +141,7 @@ def merge(yaml_config: str, hf_token: str, repo_name: str) -> Iterable[List[Log]
141
 
142
  api = huggingface_hub.HfApi(token=hf_token)
143
 
144
- with tempfile.TemporaryDirectory() as tmpdirname:
145
  tmpdir = pathlib.Path(tmpdirname)
146
  merged_path = tmpdir / "merged"
147
  merged_path.mkdir(parents=True, exist_ok=True)
 
141
 
142
  api = huggingface_hub.HfApi(token=hf_token)
143
 
144
+ with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdirname:
145
  tmpdir = pathlib.Path(tmpdirname)
146
  merged_path = tmpdir / "merged"
147
  merged_path.mkdir(parents=True, exist_ok=True)