Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ For more information on `huggingface_hub` Inference API support, please check th
|
|
| 12 |
if "GOOGLE_API_KEY" not in os.environ:
|
| 13 |
os.environ["GOOGLE_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):
|
|
|
|
| 12 |
if "GOOGLE_API_KEY" not in os.environ:
|
| 13 |
os.environ["GOOGLE_API_KEY"] = os.getenv("GOOGLE_API_KEY")
|
| 14 |
|
| 15 |
+
vis_llm = ChatGoogleGenerativeAI(model="gemini-2.0-flash-preview-image-generation", google_api_key=GOOGLE_API_KEY)
|
| 16 |
|
| 17 |
# Image to Base64 Converter
|
| 18 |
def image_to_base64(image_path):
|