xiaolv commited on
Commit
9fedc04
·
1 Parent(s): 84fcd6b

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ async def get_model_reply(prompt,style,cookies,context=[]):
26
  await bot.close()
27
  #print(raw_data)
28
  response = raw_data["item"]["messages"][1]["text"]
29
- context = [response]
30
 
31
  # list of (user, bot) responses. We will use this format later
32
  responses = [(u, b) for u, b in zip(context[::2], context[1::2])]
 
26
  await bot.close()
27
  #print(raw_data)
28
  response = raw_data["item"]["messages"][1]["text"]
29
+ context += [response]
30
 
31
  # list of (user, bot) responses. We will use this format later
32
  responses = [(u, b) for u, b in zip(context[::2], context[1::2])]