Spaces:
Sleeping
Sleeping
alanchen1115
commited on
Update main.py
Browse files
main.py
CHANGED
@@ -56,7 +56,10 @@ async def webhook(
|
|
56 |
@line_handler.add(MessageEvent, message=TextMessage)
|
57 |
def handle_message(event):
|
58 |
global working_status
|
59 |
-
|
|
|
|
|
|
|
60 |
if event.message.text == "再見":
|
61 |
working_status = True
|
62 |
line_bot_api.reply_message(
|
|
|
56 |
@line_handler.add(MessageEvent, message=TextMessage)
|
57 |
def handle_message(event):
|
58 |
global working_status
|
59 |
+
|
60 |
+
if event.type != "message" or event.message.type != "text":
|
61 |
+
out = "Gemini: [No response or the response does not contain text]"
|
62 |
+
|
63 |
if event.message.text == "再見":
|
64 |
working_status = True
|
65 |
line_bot_api.reply_message(
|