xiaolv commited on
Commit
1a78461
1 Parent(s): 8a2db5c

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,9 +14,9 @@ https://blog.csdn.net/xmh_free/article/details/127210992
14
  # with open('./cookies.json', 'r') as f:
15
  # cookies = json.load(f)
16
 
17
- async def get_model_reply(prompt,style,cookies):
18
  # combines the new question with a previous context
19
- context = []
20
  context += [prompt]
21
  cookies = json.loads(cookies)
22
  # given the most recent context (4096 characters)
 
14
  # with open('./cookies.json', 'r') as f:
15
  # cookies = json.load(f)
16
 
17
+ async def get_model_reply(prompt,style,cookies,context=[]):
18
  # combines the new question with a previous context
19
+
20
  context += [prompt]
21
  cookies = json.loads(cookies)
22
  # given the most recent context (4096 characters)