Spaces:
Sleeping
Sleeping
不能這麼快刪,無法顯示
Browse files
test.py
CHANGED
|
@@ -133,9 +133,6 @@ def handle_text_message(event):
|
|
| 133 |
)
|
| 134 |
)
|
| 135 |
# 傳送圖片後刪除暫存檔案
|
| 136 |
-
if os.path.exists(image_path):
|
| 137 |
-
os.remove(image_path)
|
| 138 |
-
|
| 139 |
except Exception as e:
|
| 140 |
app.logger.error(f"Gemini API error: {e}")
|
| 141 |
with ApiClient(configuration) as api_client:
|
|
@@ -225,4 +222,4 @@ def handle_image_message(event):
|
|
| 225 |
TextMessage(text=response.output_text),
|
| 226 |
],
|
| 227 |
)
|
| 228 |
-
)
|
|
|
|
| 133 |
)
|
| 134 |
)
|
| 135 |
# 傳送圖片後刪除暫存檔案
|
|
|
|
|
|
|
|
|
|
| 136 |
except Exception as e:
|
| 137 |
app.logger.error(f"Gemini API error: {e}")
|
| 138 |
with ApiClient(configuration) as api_client:
|
|
|
|
| 222 |
TextMessage(text=response.output_text),
|
| 223 |
],
|
| 224 |
)
|
| 225 |
+
)
|