Spaces:
Runtime error
Runtime error
Commit ·
bb5db45
1
Parent(s): a990fbc
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ def chatgpt(background,key,prompts):
|
|
| 20 |
),
|
| 21 |
prompt=prompt,
|
| 22 |
verbose=True,
|
| 23 |
-
memory=
|
| 24 |
)
|
| 25 |
|
| 26 |
output = chatgpt_chain.predict(human_input=prompts)
|
|
|
|
| 20 |
),
|
| 21 |
prompt=prompt,
|
| 22 |
verbose=True,
|
| 23 |
+
memory=ConversationBufferWindowMemory(k=2),
|
| 24 |
)
|
| 25 |
|
| 26 |
output = chatgpt_chain.predict(human_input=prompts)
|