Spaces:
Build error
Build error
updated app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ import gradio as gr
|
|
9 |
# 1. Load Gemini (API key from environment variables)
|
10 |
GEMINI_KEY = os.environ.get('GEMINI_API_KEY') # Will read from HF Secrets
|
11 |
configure(api_key=GEMINI_KEY) # Initialize Gemini
|
12 |
-
gemini = GenerativeModel('gemini-
|
13 |
|
14 |
# 2. Load Indic-TTS
|
15 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
9 |
# 1. Load Gemini (API key from environment variables)
|
10 |
GEMINI_KEY = os.environ.get('GEMINI_API_KEY') # Will read from HF Secrets
|
11 |
configure(api_key=GEMINI_KEY) # Initialize Gemini
|
12 |
+
gemini = GenerativeModel('gemini-2.0-flash')
|
13 |
|
14 |
# 2. Load Indic-TTS
|
15 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|