Athspi commited on
Commit
3391bce
·
verified ·
1 Parent(s): b3273f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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-1.5-pro-latest")
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