Spaces:
Sleeping
Sleeping
Commit ·
78c1543
1
Parent(s): 492cc75
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ num_outputs = 2000
|
|
| 43 |
conversational_memory = ConversationBufferWindowMemory( memory_key='chat_history', k=5, return_messages=True )
|
| 44 |
llm = OpenAI(temperature=0.5, model_name="gpt-4",max_tokens=num_outputs)
|
| 45 |
|
| 46 |
-
agent_executor = initialize_agent(tools, llm, agent="conversational-react-description", memory=conversational_memory,agent_kwargs={'prefix':PREFIX,'suffix': SUFFIX})
|
| 47 |
|
| 48 |
add = "Return the output in a table format or an ordered list legible to the user.\n"
|
| 49 |
def greet(Question):
|
|
|
|
| 43 |
conversational_memory = ConversationBufferWindowMemory( memory_key='chat_history', k=5, return_messages=True )
|
| 44 |
llm = OpenAI(temperature=0.5, model_name="gpt-4",max_tokens=num_outputs)
|
| 45 |
|
| 46 |
+
agent_executor = initialize_agent(tools, llm, agent="conversational-react-description", memory=conversational_memory,agent_kwargs={'prefix':PREFIX,'suffix': SUFFIX}, handle_parsing_errors=True)
|
| 47 |
|
| 48 |
add = "Return the output in a table format or an ordered list legible to the user.\n"
|
| 49 |
def greet(Question):
|