alanchen1115 commited on
Commit
7280ce9
·
verified ·
1 Parent(s): a922ab9

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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 = 'https://alanchen1115-linebot.hf.space/'+image_generator.upload_image_to_tmp(image_binary) ### 要改 https
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 超時