Update app.py
Browse files
app.py
CHANGED
@@ -154,7 +154,7 @@ def generate_tamil_script(video_path):
|
|
154 |
if video_file.state.name != "ACTIVE":
|
155 |
raise Exception(f"Gemini processing failed: {video_file.state.name}")
|
156 |
|
157 |
-
model = genai.GenerativeModel(model_name="models/gemini-
|
158 |
response = model.generate_content([GEMINI_PROMPT, video_file])
|
159 |
genai.delete_file(video_file.name)
|
160 |
|
|
|
154 |
if video_file.state.name != "ACTIVE":
|
155 |
raise Exception(f"Gemini processing failed: {video_file.state.name}")
|
156 |
|
157 |
+
model = genai.GenerativeModel(model_name="models/gemini-2.5-flash")
|
158 |
response = model.generate_content([GEMINI_PROMPT, video_file])
|
159 |
genai.delete_file(video_file.name)
|
160 |
|