Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -95,7 +95,7 @@ def handle_message(event):
|
|
95 |
# 取得使用者輸入的文字
|
96 |
user_input = event.message.text
|
97 |
# 發送使用者的輸入到聊天會話並獲得回應
|
98 |
-
response =
|
99 |
if (response.text != None):
|
100 |
# 取得生成結果
|
101 |
out = response.text
|
|
|
95 |
# 取得使用者輸入的文字
|
96 |
user_input = event.message.text
|
97 |
# 發送使用者的輸入到聊天會話並獲得回應
|
98 |
+
response = chat.send_message(user_input)
|
99 |
if (response.text != None):
|
100 |
# 取得生成結果
|
101 |
out = response.text
|