Spaces:
Sleeping
Sleeping
Update image_gen.py
Browse files- image_gen.py +0 -1
image_gen.py
CHANGED
|
@@ -232,7 +232,6 @@ def edit_section_image(image_url: str, gemini_prompt: str):
|
|
| 232 |
print("Google Gemini API key is missing. Please set the GEMINI_API_KEY environment variable.")
|
| 233 |
return None
|
| 234 |
|
| 235 |
-
genai.configure(api_key=g_api_key)
|
| 236 |
client = genai.Client(api_key=g_api_key)
|
| 237 |
|
| 238 |
# 3) Prepare the prompt_with_image: a list with [ prompt_text, PIL.Image ]
|
|
|
|
| 232 |
print("Google Gemini API key is missing. Please set the GEMINI_API_KEY environment variable.")
|
| 233 |
return None
|
| 234 |
|
|
|
|
| 235 |
client = genai.Client(api_key=g_api_key)
|
| 236 |
|
| 237 |
# 3) Prepare the prompt_with_image: a list with [ prompt_text, PIL.Image ]
|