alanchen1115 commited on
Commit
d100b82
·
verified ·
1 Parent(s): 5cf2508

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -98,7 +98,7 @@ def handle_image_message(event):
98
  image_binary = image_generator.generate_image_with_gemini(prompt)
99
 
100
  if image_binary:
101
- image_url = image_generator.upload_image_to_tmp()
102
 
103
  if image_url:
104
  # 使用 push message 發送圖片,避免 reply token 超時
 
98
  image_binary = image_generator.generate_image_with_gemini(prompt)
99
 
100
  if image_binary:
101
+ image_url = image_generator.upload_image_to_tmp(image_binary)
102
 
103
  if image_url:
104
  # 使用 push message 發送圖片,避免 reply token 超時