FengHou97 commited on
Commit
a4e28e0
·
verified ·
1 Parent(s): c04a40d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -16,9 +16,9 @@ import os
16
  # with open(image_path, "rb") as image_file:
17
  # return base64.b64encode(image_file.read()).decode("utf-8")
18
 
19
- load_dotenv()
20
- GOOGLE_API_KEY = os.getenv("AIzaSyByqW3ByYPxC4xLS_NhgwAOAMMEgB7DvoY")
21
- genai.configure(api_key=GOOGLE_API_KEY)
22
  model_vision = genai.GenerativeModel('gemini-pro-vision')
23
 
24
  def gemini_response_vision(input_texts, image):
 
16
  # with open(image_path, "rb") as image_file:
17
  # return base64.b64encode(image_file.read()).decode("utf-8")
18
 
19
+ #load_dotenv()
20
+ #GOOGLE_API_KEY = os.getenv("AIzaSyByqW3ByYPxC4xLS_NhgwAOAMMEgB7DvoY")
21
+ genai.configure(api_key="AIzaSyByqW3ByYPxC4xLS_NhgwAOAMMEgB7DvoY")
22
  model_vision = genai.GenerativeModel('gemini-pro-vision')
23
 
24
  def gemini_response_vision(input_texts, image):