resolverkatla commited on
Commit
c541eea
·
verified ·
1 Parent(s): e40fd95

updated to Gemini 2.0 Flash

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,8 +6,8 @@ import os
6
  API_KEY = os.getenv("GEMINI_API_KEY") # Set this in Hugging Face secrets
7
  genai.configure(api_key=API_KEY)
8
 
9
- # Use Gemini 1.5 Flash (free-tier accessible)
10
- model = genai.GenerativeModel("gemini-1.5-flash")
11
 
12
  def vqa(image, question):
13
  """Performs Visual Question Answering (VQA) using the Gemini API."""
 
6
  API_KEY = os.getenv("GEMINI_API_KEY") # Set this in Hugging Face secrets
7
  genai.configure(api_key=API_KEY)
8
 
9
+ # Use Gemini 2.0 Flash (free-tier accessible)
10
+ model = genai.GenerativeModel("gemini-2.0-flash")
11
 
12
  def vqa(image, question):
13
  """Performs Visual Question Answering (VQA) using the Gemini API."""