Update app.py
Browse files
app.py
CHANGED
|
@@ -91,9 +91,10 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 91 |
api_base="https://api.openai.com/v1",
|
| 92 |
api_key=os.environ["OPENAI_API_KEY"],
|
| 93 |
)
|
|
|
|
| 94 |
my_small_agent = CodeAgent(
|
| 95 |
model=openai_41mini_model,
|
| 96 |
-
tools=[
|
| 97 |
name="web_agent",
|
| 98 |
description="Use search engine to find webpages related to a subject and get the page content",
|
| 99 |
#additional_authorized_imports=["pandas", "numpy","bs4"],
|
|
|
|
| 91 |
api_base="https://api.openai.com/v1",
|
| 92 |
api_key=os.environ["OPENAI_API_KEY"],
|
| 93 |
)
|
| 94 |
+
search_tool = DuckDuckGoSearchTool()
|
| 95 |
my_small_agent = CodeAgent(
|
| 96 |
model=openai_41mini_model,
|
| 97 |
+
tools=[search_tool],
|
| 98 |
name="web_agent",
|
| 99 |
description="Use search engine to find webpages related to a subject and get the page content",
|
| 100 |
#additional_authorized_imports=["pandas", "numpy","bs4"],
|