From dd5d6e9bbe0eb1aaa26aebaefa4f20835069b1b2 Mon Sep 17 00:00:00 2001 From: Kastan Day Date: Thu, 28 Mar 2024 16:26:27 -0700 Subject: [PATCH] Add n8n integration to Modal pest detection --- ai_ta_backend/modal/pest_detection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ai_ta_backend/modal/pest_detection.py b/ai_ta_backend/modal/pest_detection.py index 9d7a1ad0..bd04e9d0 100644 --- a/ai_ta_backend/modal/pest_detection.py +++ b/ai_ta_backend/modal/pest_detection.py @@ -98,8 +98,8 @@ async def predict(self, request: Request): image_urls = input.get('image_urls', []) print(f"Image URLS (no parsing): {image_urls}") - # image_urls = json.loads(image_urls) - # print(f"json parsed Image URLS: {image_urls}") + image_urls = json.loads(image_urls) + print(f"json parsed Image URLS: {image_urls}") try: # Run the plugin