Update main.py
Browse files
main.py
CHANGED
@@ -97,7 +97,7 @@ def handle_image_message(event):
|
|
97 |
image_binary = image_generator.generate_image_with_gemini(prompt)
|
98 |
|
99 |
if image_binary:
|
100 |
-
image_url =
|
101 |
|
102 |
if image_url:
|
103 |
# 使用 push message 發送圖片,避免 reply token 超時
|
|
|
97 |
image_binary = image_generator.generate_image_with_gemini(prompt)
|
98 |
|
99 |
if image_binary:
|
100 |
+
image_url = os.getenv("HF_SPACE")+image_generator.upload_image_to_tmp(image_binary) ### 要改 https
|
101 |
|
102 |
if image_url:
|
103 |
# 使用 push message 發送圖片,避免 reply token 超時
|