Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -16,9 +16,9 @@ import os
|
|
16 |
# with open(image_path, "rb") as image_file:
|
17 |
# return base64.b64encode(image_file.read()).decode("utf-8")
|
18 |
|
19 |
-
load_dotenv()
|
20 |
-
GOOGLE_API_KEY = os.getenv("AIzaSyByqW3ByYPxC4xLS_NhgwAOAMMEgB7DvoY")
|
21 |
-
genai.configure(api_key=
|
22 |
model_vision = genai.GenerativeModel('gemini-pro-vision')
|
23 |
|
24 |
def gemini_response_vision(input_texts, image):
|
|
|
16 |
# with open(image_path, "rb") as image_file:
|
17 |
# return base64.b64encode(image_file.read()).decode("utf-8")
|
18 |
|
19 |
+
#load_dotenv()
|
20 |
+
#GOOGLE_API_KEY = os.getenv("AIzaSyByqW3ByYPxC4xLS_NhgwAOAMMEgB7DvoY")
|
21 |
+
genai.configure(api_key="AIzaSyByqW3ByYPxC4xLS_NhgwAOAMMEgB7DvoY")
|
22 |
model_vision = genai.GenerativeModel('gemini-pro-vision')
|
23 |
|
24 |
def gemini_response_vision(input_texts, image):
|