Update main.py
Browse files
main.py
CHANGED
@@ -9,6 +9,7 @@ from linebot import LineBotApi, WebhookHandler
|
|
9 |
from linebot.exceptions import InvalidSignatureError
|
10 |
from linebot.models import MessageEvent, TextMessage, TextSendMessage, ImageSendMessage, AudioMessage, ImageMessage
|
11 |
import PIL.Image
|
|
|
12 |
|
13 |
# 設定 Google AI API 金鑰
|
14 |
genai.configure(api_key=os.environ["GOOGLE_API_KEY"])
|
|
|
9 |
from linebot.exceptions import InvalidSignatureError
|
10 |
from linebot.models import MessageEvent, TextMessage, TextSendMessage, ImageSendMessage, AudioMessage, ImageMessage
|
11 |
import PIL.Image
|
12 |
+
import tempfile
|
13 |
|
14 |
# 設定 Google AI API 金鑰
|
15 |
genai.configure(api_key=os.environ["GOOGLE_API_KEY"])
|