Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ async def get_model_reply(prompt,style,cookies,context=[]):
|
|
17 |
# given the most recent context (4096 characters)
|
18 |
# continue the text up to 2048 tokens ~ 8192 charaters
|
19 |
bot = Chatbot(cookies=cookies)
|
20 |
-
prompt2='\n\n'.join(context)[:
|
21 |
raw_data = await bot.ask(prompt2, conversation_style=style)
|
22 |
await bot.close()
|
23 |
#print(raw_data)
|
|
|
17 |
# given the most recent context (4096 characters)
|
18 |
# continue the text up to 2048 tokens ~ 8192 charaters
|
19 |
bot = Chatbot(cookies=cookies)
|
20 |
+
prompt2='\n\n'.join(context)[:4096]
|
21 |
raw_data = await bot.ask(prompt2, conversation_style=style)
|
22 |
await bot.close()
|
23 |
#print(raw_data)
|