Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,9 +10,9 @@ import os
|
|
| 10 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
| 11 |
"""
|
| 12 |
|
| 13 |
-
|
| 14 |
|
| 15 |
-
vis_llm = ChatGoogleGenerativeAI(model="gemini-2.0-flash-preview-image-generation"
|
| 16 |
|
| 17 |
# Image to Base64 Converter
|
| 18 |
def image_to_base64(image_path):
|
|
|
|
| 10 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
| 11 |
"""
|
| 12 |
|
| 13 |
+
genai.configure(api_key=os.getenv("GOOGLE_API_KEY"))
|
| 14 |
|
| 15 |
+
vis_llm = ChatGoogleGenerativeAI(model="gemini-2.0-flash-preview-image-generation")
|
| 16 |
|
| 17 |
# Image to Base64 Converter
|
| 18 |
def image_to_base64(image_path):
|