3v324v23 commited on
Commit
3797e4d
·
1 Parent(s): 4c25f5a

不能這麼快刪,無法顯示

Browse files
Files changed (1) hide show
  1. test.py +1 -4
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
+ )