msn-enginenova21 commited on
Commit
463bd89
1 Parent(s): ec73a60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -6,8 +6,6 @@ from PIL import Image
6
 
7
  load_dotenv()
8
  GOOGLE_API_KEY = os.getenv("GOOGLE_API")
9
- if not GOOGLE_API:
10
- raise ValueError("GOOGLE_API_KEY not found in environment variables")
11
  genai.configure(api_key=GOOGLE_API_KEY)
12
  model = genai.GenerativeModel('gemini-pro')
13
  model_vision = genai.GenerativeModel('gemini-pro-vision')
 
6
 
7
  load_dotenv()
8
  GOOGLE_API_KEY = os.getenv("GOOGLE_API")
 
 
9
  genai.configure(api_key=GOOGLE_API_KEY)
10
  model = genai.GenerativeModel('gemini-pro')
11
  model_vision = genai.GenerativeModel('gemini-pro-vision')