This commit is contained in:
camenduru
2024-08-22 02:30:12 +03:00
committed by GitHub
parent fd573db370
commit 71498fca56
+1 -1
View File
@@ -24,7 +24,7 @@ class SendToTostAIWebhook:
def send_to_tost_ai_webhook(self, images, webhook_url: str, webhook_key: str,):
(full_output_folder, filename, counter, subfolder, _,) = folder_paths.get_save_image_path("final_tost", folder_paths.get_temp_directory())
tost_file_path = os.path.join(full_output_folder, f"{filename}_.png")
tost_file_path = os.path.join(full_output_folder, f"{filename}.png")
tost_image = 255.0 * images[0].cpu().numpy()
tost_image_pil = Image.fromarray(tost_image.astype(np.uint8))
tost_image_pil.save(tost_file_path)