Logger tanımını düzelt - import sıralama hatası
Browse files
app.py
CHANGED
@@ -17,6 +17,11 @@ from whatsapp_passive_profiler import (
|
|
17 |
analyze_user_message, get_user_profile_summary, get_personalized_recommendations
|
18 |
)
|
19 |
|
|
|
|
|
|
|
|
|
|
|
20 |
# Import improved WhatsApp search for BF space
|
21 |
try:
|
22 |
from whatsapp_improved_chatbot import WhatsAppImprovedChatbot
|
@@ -34,11 +39,6 @@ except ImportError:
|
|
34 |
USE_GPT5_SEARCH = False
|
35 |
logger.info("❌ GPT-5 search not available")
|
36 |
|
37 |
-
# LOGGING EN BAŞA EKLENDİ
|
38 |
-
import logging
|
39 |
-
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')
|
40 |
-
logger = logging.getLogger(__name__)
|
41 |
-
|
42 |
warnings.simplefilter('ignore')
|
43 |
|
44 |
# API ayarları
|
|
|
17 |
analyze_user_message, get_user_profile_summary, get_personalized_recommendations
|
18 |
)
|
19 |
|
20 |
+
# LOGGING EN BAŞA EKLENDİ
|
21 |
+
import logging
|
22 |
+
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')
|
23 |
+
logger = logging.getLogger(__name__)
|
24 |
+
|
25 |
# Import improved WhatsApp search for BF space
|
26 |
try:
|
27 |
from whatsapp_improved_chatbot import WhatsAppImprovedChatbot
|
|
|
39 |
USE_GPT5_SEARCH = False
|
40 |
logger.info("❌ GPT-5 search not available")
|
41 |
|
|
|
|
|
|
|
|
|
|
|
42 |
warnings.simplefilter('ignore')
|
43 |
|
44 |
# API ayarları
|