Spaces:
Runtime error
Runtime error
Commit
·
35032fa
1
Parent(s):
08ba3e2
Update app.py
Browse files
app.py
CHANGED
|
@@ -97,7 +97,7 @@ Human Input: {{human_input}}
|
|
| 97 |
llm=OpenAI(temperature=.5, openai_api_key=session_token),
|
| 98 |
prompt=prompt,
|
| 99 |
verbose=True,
|
| 100 |
-
memory=ConversationalBufferWindowMemory(k=2,
|
| 101 |
)
|
| 102 |
output = chatgpt_chain.predict(human_input=human_input)
|
| 103 |
|
|
|
|
| 97 |
llm=OpenAI(temperature=.5, openai_api_key=session_token),
|
| 98 |
prompt=prompt,
|
| 99 |
verbose=True,
|
| 100 |
+
memory=ConversationalBufferWindowMemory(k=2, ai_prefix=formatted_classname),
|
| 101 |
)
|
| 102 |
output = chatgpt_chain.predict(human_input=human_input)
|
| 103 |
|