Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,12 +7,7 @@ from smolagents.mcp_client import MCPClient
|
|
7 |
|
8 |
model = InferenceClientModel()
|
9 |
|
10 |
-
test_question = """
|
11 |
-
Use 480p quality with 5-second frame interval.
|
12 |
-
Answer the following questions:
|
13 |
-
1) This is a fragment from what film?
|
14 |
-
2) What was the last sentence spoken?
|
15 |
-
"""
|
16 |
|
17 |
try:
|
18 |
mcp_client = MCPClient(
|
@@ -20,7 +15,7 @@ try:
|
|
20 |
)
|
21 |
|
22 |
tools = mcp_client.get_tools()
|
23 |
-
agent =
|
24 |
|
25 |
def call_agent(message, history):
|
26 |
return str(agent.run(message))
|
|
|
7 |
|
8 |
model = InferenceClientModel()
|
9 |
|
10 |
+
test_question = """What's this video about? https://www.youtube.com/watch?v=R3GfuzLMPkA"""
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
try:
|
13 |
mcp_client = MCPClient(
|
|
|
15 |
)
|
16 |
|
17 |
tools = mcp_client.get_tools()
|
18 |
+
agent = ToolCallingAgent(tools=[*tools], model=model)
|
19 |
|
20 |
def call_agent(message, history):
|
21 |
return str(agent.run(message))
|