Update main.py
Browse files
main.py
CHANGED
|
@@ -194,7 +194,7 @@ def handle_image_message(event):
|
|
| 194 |
prompt = user_text.replace("請幫我生成圖片", "").strip()
|
| 195 |
|
| 196 |
client = ImgurClient(client_id, client_secret, access_token, refresh_token)
|
| 197 |
-
image_binary
|
| 198 |
|
| 199 |
if image_binary:
|
| 200 |
album = "nvsYwgq" # 你的相簿ID
|
|
|
|
| 194 |
prompt = user_text.replace("請幫我生成圖片", "").strip()
|
| 195 |
|
| 196 |
client = ImgurClient(client_id, client_secret, access_token, refresh_token)
|
| 197 |
+
image_binary = generate_image_with_gemini(prompt)
|
| 198 |
|
| 199 |
if image_binary:
|
| 200 |
album = "nvsYwgq" # 你的相簿ID
|