From 5f568727611d0a2f76dc40255847ecb596bdb3d3 Mon Sep 17 00:00:00 2001 From: Ruixi Fan Date: Mon, 15 Apr 2024 13:00:05 -0700 Subject: [PATCH] fix typo --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index b0968c310..5c2ec9815 100644 --- a/server.py +++ b/server.py @@ -219,7 +219,7 @@ class PromptServer(): if weight_type in self.weight_type2path: target_path = self.weight_type2path[weight_type] try: - with tempfile.TemporaryDirectory as temp_dir: + with tempfile.TemporaryDirectory() as temp_dir: temp_save_path = os.path.join(temp_dir, local_file_name) final_save_path = os.path.join(target_path, local_file_name) logging.info(f"Downloading file to {temp_save_path}.")