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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -3,6 +3,12 @@ import google.generativeai as genai
3
  from PIL import Image
4
  import os
5
 
 
 
 
 
 
 
6
  # Configure the Gemini API
7
  genai.configure(api_key=os.environ.get("AIzaSyCFdxcKVO6VSxEBaNE2W3LIvRLPEPpyMGw"))
8
 
 
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