typesdigital commited on
Commit
0015894
·
verified ·
1 Parent(s): 9141ce1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -3,17 +3,11 @@ import google.generativeai as genai
3
  from PIL import Image
4
  import os
5
 
6
- # Configure the API key
7
- genai.configure(api_key='AIzaSyCFdxcKVO6VSxEBaNE2W3LIvRLPEPpyMGw')
8
-
9
- # Set up the model
10
- model = genai.GenerativeModel('gemini-1.5-flash')
11
-
12
  # Configure the Gemini API
13
  genai.configure(api_key=os.environ.get("AIzaSyCFdxcKVO6VSxEBaNE2W3LIvRLPEPpyMGw"))
14
 
15
  # Set up the model
16
- model = genai.GenerativeModel('gemini-pro-vision')
17
 
18
  def chat_with_gemini(history, user_message, image):
19
  history = history or []
 
3
  from PIL import Image
4
  import os
5
 
 
 
 
 
 
 
6
  # Configure the Gemini API
7
  genai.configure(api_key=os.environ.get("AIzaSyCFdxcKVO6VSxEBaNE2W3LIvRLPEPpyMGw"))
8
 
9
  # Set up the model
10
+ model = genai.GenerativeModel('gemini-1.5-flash')
11
 
12
  def chat_with_gemini(history, user_message, image):
13
  history = history or []