Spaces:
Runtime error
Runtime error
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 = os.getenv("HF_SPACE")
|
| 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.path.join(os.getenv("HF_SPACE"),image_generator.upload_image_to_tmp(image_binary)) ### os.getenv("HF_SPACE") => https://xxxxx.hf.space
|
| 101 |
|
| 102 |
if image_url:
|
| 103 |
# ไฝฟ็จ push message ็ผ้ๅ็๏ผ้ฟๅ
reply token ่ถ
ๆ
|