Spaces:
Paused
Paused
Upload app.py
Browse files
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
|
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])]
|