RomZay commited on
Commit
00deb4e
·
verified ·
1 Parent(s): 4c60276

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -96,7 +96,7 @@ def respond(message, api_key, max_tokens, top_p, temperature):
96
  if response.status_code == 200:
97
  response_json = response.json()
98
  assistant_reply = response_json["msq"]["message"][0]
99
- history.append((message, assistant_reply, "You", "P-ALPLE", session[api_key]["avatar"], ASSISTANT_PIC_PATH))
100
  sessions[api_key]["history"] = history
101
  return history, assistant_reply
102
  else:
 
96
  if response.status_code == 200:
97
  response_json = response.json()
98
  assistant_reply = response_json["msq"]["message"][0]
99
+ history.append((message, assistant_reply, "You", "P-ALPLE", sessions[api_key]["avatar"], ASSISTANT_PIC_PATH))
100
  sessions[api_key]["history"] = history
101
  return history, assistant_reply
102
  else: