alanchen1115 commited on
Commit
1c424f7
·
verified ·
1 Parent(s): 2f519da

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -95,7 +95,7 @@ def handle_message(event):
95
  # 取得使用者輸入的文字
96
  user_input = event.message.text
97
  # 發送使用者的輸入到聊天會話並獲得回應
98
- response = chat_session.send_message(user_input)
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