bstraehle commited on
Commit
36cd0d5
·
1 Parent(s): 4d27040

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -40,12 +40,12 @@ def invoke(openai_api_key, prompt):
40
 
41
  tools = load_tools(["llm-math"], llm = llm)
42
 
43
- #agent= initialize_agent(
44
- # tools + [time],
45
- # llm,
46
- # agent=AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION,
47
- # handle_parsing_errors=True,
48
- # verbose = True)
49
 
50
  #result = agent(prompt)
51
 
 
40
 
41
  tools = load_tools(["llm-math"], llm = llm)
42
 
43
+ agent = initialize_agent(
44
+ tools, # + [time],
45
+ llm,
46
+ agent = AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION,
47
+ handle_parsing_errors = True,
48
+ verbose = True)
49
 
50
  #result = agent(prompt)
51