Skip to content

Commit 30a2603

Browse files
committed
delete cached models before exiting tempfile context
1 parent 5f9a930 commit 30a2603

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tmbed/embed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def _download_models(self, model_path):
5757
model_t.save_pretrained(model_path)
5858
model_e.save_pretrained(model_path)
5959

60-
del model_t, model_e
60+
del model_t, model_e
6161

6262
return model_path
6363

0 commit comments

Comments
 (0)