-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.py
More file actions
34 lines (28 loc) · 1.23 KB
/
Copy pathconfig.py
File metadata and controls
34 lines (28 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
try:
import google.generativeai as genai
GENAI_AVAILABLE = True
# Replace this with your actual Gemini API key
genai.configure(api_key="AIzaSyDzPkc8K4nJI5606Dbl2D2PRtj2eM4zb2c")
def get_model():
try:
return genai.GenerativeModel("gemini-2.5-flash-lite")
except Exception as e:
print(f"⚠️ Gemini model error: {e}")
return None
except ImportError:
GENAI_AVAILABLE = False
print("⚠️ Google Generative AI not available. Install with: pip install google-generativeai")
def get_model():
print("⚠️ Gemini AI not configured. Using fallback responses.")
return None
# --- Spotify API Configuration ---
# Get these credentials from https://developer.spotify.com/dashboard/
SPOTIFY_CLIENT_ID = "c9a5ff11cec84ed5a3b27baeb8372588"
SPOTIFY_CLIENT_SECRET = "84f3442d474f41c7b41462bd29069a32"
SPOTIFY_REDIRECT_URI = "http://localhost:8080/callback"
# Instructions:
# 1. Go to https://developer.spotify.com/dashboard/
# 2. Create a new app
# 3. Copy the Client ID and Client Secret
# 4. Add http://localhost:8888/callback to Redirect URIs
# 5. Replace the values above with your actual credentials