Spaces:
Sleeping
Sleeping
| # config.py | |
| import os | |
| from dotenv import load_dotenv | |
| # Load environment variables from .env file | |
| load_dotenv() | |
| # -- API Configuration -- | |
| GROQ_API_KEY = os.getenv('GROQ_API_KEY') | |
| GROQ_MODEL = os.getenv('GROQ_MODEL', 'llama3-8b-8192') # Default model | |
| DEBUG_MODE = os.getenv('DEBUG', 'false').lower() == 'true' | |
| # Validate API key | |
| if not GROQ_API_KEY: | |
| print("⚠️ WARNING: GROQ_API_KEY not found!") | |
| print("Please set your Groq API key in one of these ways:") | |
| print("1. Create a .env file with: GROQ_API_KEY=your_api_key") | |
| print("2. Set environment variable: export GROQ_API_KEY=your_api_key") | |
| print("3. Get your free key from: https://console.groq.com/keys") | |
| # -- Ollama Configuration (Legacy) -- | |
| OLLAMA_MODEL = 'llama3.1' | |
| # -- Product Coaching Configuration -- | |
| COACHING_TYPES = [ | |
| 'Product Strategy & Vision', | |
| 'Market Research & Analysis', | |
| 'User Experience & Design Thinking', | |
| 'Product Roadmap Planning', | |
| 'Metrics & Analytics', | |
| 'Stakeholder Management', | |
| 'Product Launch Strategy', | |
| 'Competitive Analysis', | |
| 'Feature Prioritization', | |
| 'Customer Development', | |
| 'Resume & Application Strategy' | |
| ] | |
| # -- Product Management Focus Areas -- | |
| FOCUS_AREAS = [ | |
| 'Product Discovery', | |
| 'Product Development', | |
| 'Go-to-Market Strategy', | |
| 'Product Optimization', | |
| 'Team Leadership', | |
| 'Data-Driven Decisions' | |
| ] | |
| # -- Piper TTS Configuration -- | |
| PIPER_VOICE_MODEL = './voice_model/en_US-lessac-medium.onnx' | |
| # -- Directories -- | |
| UPLOAD_FOLDER = 'uploads' | |
| REPORT_FOLDER = 'reports' | |
| # Ensure directories exist | |
| import os | |
| os.makedirs(UPLOAD_FOLDER, exist_ok=True) | |
| os.makedirs(REPORT_FOLDER, exist_ok=True) |