Spaces:
Running
Running
alanchen1115
commited on
Commit
β’
e15e34e
1
Parent(s):
df7b5e5
Update main.py
Browse files
main.py
CHANGED
@@ -58,7 +58,7 @@ def handle_message(event):
|
|
58 |
global working_status
|
59 |
|
60 |
if event.type != "message" or event.message.type != "text":
|
61 |
-
TextSendMessage(text="
|
62 |
|
63 |
elif event.message.text == "εθ¦":
|
64 |
working_status = True
|
@@ -82,7 +82,7 @@ def handle_message(event):
|
|
82 |
if not response.parts or not response.parts[0].text:
|
83 |
out = "Gemini: [No response or the response does not contain text]"
|
84 |
except:
|
85 |
-
out = "Gemini
|
86 |
|
87 |
line_bot_api.reply_message(
|
88 |
event.reply_token,
|
|
|
58 |
global working_status
|
59 |
|
60 |
if event.type != "message" or event.message.type != "text":
|
61 |
+
TextSendMessage(text="Event type error:[No response or the response does not contain text]")
|
62 |
|
63 |
elif event.message.text == "εθ¦":
|
64 |
working_status = True
|
|
|
82 |
if not response.parts or not response.parts[0].text:
|
83 |
out = "Gemini: [No response or the response does not contain text]"
|
84 |
except:
|
85 |
+
out = "Gemini error!"
|
86 |
|
87 |
line_bot_api.reply_message(
|
88 |
event.reply_token,
|