From 4e77be0e28121a09620a8fa2c34d02a01a7eed65 Mon Sep 17 00:00:00 2001 From: camenduru <54370274+camenduru@users.noreply.github.com> Date: Thu, 22 Aug 2024 02:41:34 +0300 Subject: [PATCH] test --- __init__.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/__init__.py b/__init__.py index 5a10a00..5f30c36 100644 --- a/__init__.py +++ b/__init__.py @@ -29,10 +29,6 @@ class SendToTostAIWebhook: tost_image_pil = Image.fromarray(tost_image.astype(np.uint8)) tost_image_pil.save(tost_file_path) response = requests.post(f"{webhook_url}/{webhook_key}", files={"file": open(tost_file_path, "rb")}) - if response.status_code == 204: - print("Successfully uploaded file to TostAI.") - else: - print(f"Failed to upload file. Status code: {response.status_code}:{response.text}") return (f"{response.status_code}:{response.text}", ) NODE_CLASS_MAPPINGS = {