Spaces:
Sleeping
Sleeping
fix: 'tools' shadow
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ request_toolkit = RequestsToolkit(
|
|
26 |
)
|
27 |
request_tools = request_toolkit.get_tools()
|
28 |
|
29 |
-
|
30 |
search_and_extract,
|
31 |
youtube_search_tool,
|
32 |
load_youtube_transcript,
|
@@ -37,7 +37,7 @@ tools = [
|
|
37 |
*request_tools
|
38 |
],
|
39 |
|
40 |
-
print(f"tools: {json.dumps(
|
41 |
|
42 |
|
43 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
@@ -106,7 +106,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
106 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
107 |
try:
|
108 |
agent = ToolAgent(
|
109 |
-
tools=
|
110 |
backstory=TOOL_USE_SYS_PROMPT
|
111 |
)
|
112 |
agent.initialize()
|
|
|
26 |
)
|
27 |
request_tools = request_toolkit.get_tools()
|
28 |
|
29 |
+
TOOLS = [
|
30 |
search_and_extract,
|
31 |
youtube_search_tool,
|
32 |
load_youtube_transcript,
|
|
|
37 |
*request_tools
|
38 |
],
|
39 |
|
40 |
+
print(f"tools: {json.dumps(TOOLS, indent=2)}")
|
41 |
|
42 |
|
43 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
|
106 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
107 |
try:
|
108 |
agent = ToolAgent(
|
109 |
+
tools=TOOLS,
|
110 |
backstory=TOOL_USE_SYS_PROMPT
|
111 |
)
|
112 |
agent.initialize()
|