This commit is contained in:
Ruixi Fan 2024-04-15 13:00:05 -07:00
parent 6eb236df56
commit 5f56872761
No known key found for this signature in database
GPG Key ID: C6112CB66F7DED6C

View File

@ -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}.")