VanguardAI commited on
Commit
64725d2
·
verified ·
1 Parent(s): c2f1df0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -98,12 +98,12 @@ def handle_input(user_prompt, image=None, audio=None, websearch=False):
98
 
99
  tools = [
100
  FunctionTool.from_defaults(fn=numpy_code_calculator, name="Numpy Code Calculator"),
101
- FunctionTool.from_defaults(fn=image_generation, name="Image Generation"),
102
  ]
103
 
104
  # Add the web search tool only if websearch mode is enabled
105
  if websearch:
106
- tools.append(FunctionTool.from_defaults(fn=web_search, name="Web Search"))
107
 
108
  llm = Groq(model=MODEL, api_key=os.environ.get("GROQ_API_KEY"))
109
  agent = ReActAgent.from_tools(tools, llm=llm, verbose=True)
 
98
 
99
  tools = [
100
  FunctionTool.from_defaults(fn=numpy_code_calculator, name="Numpy Code Calculator"),
101
+ FunctionTool.from_defaults(fn=image_generation, name="Image"),
102
  ]
103
 
104
  # Add the web search tool only if websearch mode is enabled
105
  if websearch:
106
+ tools.append(FunctionTool.from_defaults(fn=web_search, name="Web"))
107
 
108
  llm = Groq(model=MODEL, api_key=os.environ.get("GROQ_API_KEY"))
109
  agent = ReActAgent.from_tools(tools, llm=llm, verbose=True)