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