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