Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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)
|
|
|
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)
|