Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
|