sammy786 commited on
Commit
72aba91
·
verified ·
1 Parent(s): 20f00c5

Update config.py

Browse files
Files changed (1) hide show
  1. config.py +25 -38
config.py CHANGED
@@ -1,17 +1,31 @@
1
- """Configuration for RewardPilot Web UI"""
 
 
 
2
 
3
- # Service URLs
4
  ORCHESTRATOR_URL = "https://mcp-1st-birthday-rewardpilot-orchestrator.hf.space"
5
  SMART_WALLET_URL = "https://mcp-1st-birthday-rewardpilot-smart-wallet.hf.space"
6
  REWARDS_RAG_URL = "https://mcp-1st-birthday-rewardpilot-rewards-rag.hf.space"
7
  SPEND_FORECAST_URL = "https://mcp-1st-birthday-rewardpilot-spend-forecast.hf.space"
8
 
9
- # UI Configuration
10
- APP_TITLE = "💳 RewardPilot"
11
- APP_DESCRIPTION = "AI-Powered Credit Card Recommendation Engine"
12
- THEME = "soft" # Gradio theme
 
 
 
 
 
13
 
14
- # MCC Categories
 
 
 
 
 
 
15
  MCC_CATEGORIES = {
16
  "Groceries": "5411",
17
  "Restaurants": "5812",
@@ -26,7 +40,7 @@ MCC_CATEGORIES = {
26
  "General Retail": "5999"
27
  }
28
 
29
- # Merchant options by category
30
  MERCHANTS_BY_CATEGORY = {
31
  "Groceries": ["Whole Foods", "Trader Joe's", "Safeway", "Kroger", "Costco"],
32
  "Restaurants": ["Olive Garden", "Chipotle", "The Cheesecake Factory", "P.F. Chang's", "Red Lobster"],
@@ -41,37 +55,10 @@ MERCHANTS_BY_CATEGORY = {
41
  "General Retail": ["Target", "Walmart", "Amazon", "Best Buy", "Home Depot"]
42
  }
43
 
44
- # Sample Users
45
  SAMPLE_USERS = ["u_alice", "u_bob", "u_charlie"]
46
 
47
- # Feature Flags
48
  ENABLE_ANALYTICS = True
49
  ENABLE_COMPARISON = True
50
- ENABLE_HISTORY = True
51
-
52
- from dotenv import load_dotenv
53
- import os
54
-
55
- load_dotenv()
56
-
57
-
58
- # LLM Configuration
59
-
60
- # Gemini Configuration
61
- GEMINI_API_KEY = os.getenv("GEMINI_API_KEY", "")
62
- GEMINI_MODEL = "gemini-2.5-flash"
63
- USE_GEMINI = os.getenv("USE_GEMINI", "true").lower() == "true"
64
-
65
- HF_TOKEN = os.getenv("HF_TOKEN", "") # Hugging Face API token
66
- LLM_MODEL = os.getenv(
67
- "LLM_MODEL",
68
- "meta-llama/Llama-3.2-3B-Instruct"
69
- )
70
- LLM_ENABLED = os.getenv("LLM_ENABLED", "true").lower() == "true"
71
-
72
- # UI Configuration
73
- APP_TITLE = "RewardPilot - AI-Powered Credit Card Optimizer"
74
- APP_DESCRIPTION = "Maximize your credit card rewards with intelligent recommendations"
75
- THEME = "soft"
76
-
77
- CACHE_TTL = 300 # 5 minutes
 
1
+ from dotenv import load_dotenv
2
+ import os
3
+
4
+ load_dotenv()
5
 
6
+ # ==================== SERVICE URLS ====================
7
  ORCHESTRATOR_URL = "https://mcp-1st-birthday-rewardpilot-orchestrator.hf.space"
8
  SMART_WALLET_URL = "https://mcp-1st-birthday-rewardpilot-smart-wallet.hf.space"
9
  REWARDS_RAG_URL = "https://mcp-1st-birthday-rewardpilot-rewards-rag.hf.space"
10
  SPEND_FORECAST_URL = "https://mcp-1st-birthday-rewardpilot-spend-forecast.hf.space"
11
 
12
+ # ==================== GEMINI CONFIGURATION ====================
13
+ GEMINI_API_KEY = os.getenv("GEMINI_API_KEY", "")
14
+ GEMINI_MODEL = "gemini-2.5-flash"
15
+ USE_GEMINI = os.getenv("USE_GEMINI", "true").lower() == "true"
16
+
17
+ # ==================== LLAMA CONFIGURATION ====================
18
+ HF_TOKEN = os.getenv("HF_TOKEN", "")
19
+ LLM_MODEL = os.getenv("LLM_MODEL", "meta-llama/Llama-3.2-3B-Instruct")
20
+ LLM_ENABLED = os.getenv("LLM_ENABLED", "true").lower() == "true"
21
 
22
+ # ==================== UI CONFIGURATION ====================
23
+ APP_TITLE = "RewardPilot - AI-Powered Credit Card Optimizer"
24
+ APP_DESCRIPTION = "Maximize your credit card rewards with intelligent recommendations"
25
+ THEME = "soft"
26
+ CACHE_TTL = 300
27
+
28
+ # ==================== MCC CATEGORIES ====================
29
  MCC_CATEGORIES = {
30
  "Groceries": "5411",
31
  "Restaurants": "5812",
 
40
  "General Retail": "5999"
41
  }
42
 
43
+ # ==================== MERCHANTS BY CATEGORY ====================
44
  MERCHANTS_BY_CATEGORY = {
45
  "Groceries": ["Whole Foods", "Trader Joe's", "Safeway", "Kroger", "Costco"],
46
  "Restaurants": ["Olive Garden", "Chipotle", "The Cheesecake Factory", "P.F. Chang's", "Red Lobster"],
 
55
  "General Retail": ["Target", "Walmart", "Amazon", "Best Buy", "Home Depot"]
56
  }
57
 
58
+ # ==================== SAMPLE USERS ====================
59
  SAMPLE_USERS = ["u_alice", "u_bob", "u_charlie"]
60
 
61
+ # ==================== FEATURE FLAGS ====================
62
  ENABLE_ANALYTICS = True
63
  ENABLE_COMPARISON = True
64
+ ENABLE_HISTORY = True