VISHAL BHANUSHALI 3 månader sedan
förälder
incheckning
10e8a74650
3 ändrade filer med 6 tillägg och 6 borttagningar
  1. 1 1
      core/services/gemini_service.py
  2. 1 1
      core/services/image_scorer.py
  3. 4 4
      core/views.py

+ 1 - 1
core/services/gemini_service.py

@@ -522,7 +522,7 @@ class GeminiAttributeService:
             
             prompt = self._build_comprehensive_prompt(product, limited_issues, category_rules, scores)
             response = self._call_gemini_api(prompt, max_tokens=8192)
-            print("response",response)
+            # print("response",response)
             if not response or not response.candidates:
                 logger.error(f"No candidates returned for SKU: {product.get('sku')}")
                 return {

+ 1 - 1
core/services/image_scorer.py

@@ -304,7 +304,7 @@ class ImageQualityScorer:
         bg_info = {}
         
 
-        print("hello")
+        # print("hello")
 
         try:
             pixels = image_np.reshape(-1, 3)

+ 4 - 4
core/views.py

@@ -10,10 +10,10 @@ from django.utils.decorators import method_decorator
 from django.conf import settings
 import json
 import logging
-logging.basicConfig(
-    level=logging.INFO,  # or DEBUG if you want more detail
-    format="%(asctime)s [%(levelname)s] %(name)s: %(message)s"
-)
+# logging.basicConfig(
+#     level=logging.INFO,  # or DEBUG if you want more detail
+#     format="%(asctime)s [%(levelname)s] %(name)s: %(message)s"
+# )
 import os
 from core.services.image_scorer import ImageQualityScorer
 from core.models import AttributeScore, CategoryAttributeRule, ProductContentRule, Product