artyomboyko commited on
Commit
e3e0421
·
verified ·
1 Parent(s): 1873fe7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -7,12 +7,7 @@ from smolagents.mcp_client import MCPClient
7
 
8
  model = InferenceClientModel()
9
 
10
- test_question = """Analyze YouTube video at https://www.youtube.com/watch?v=AP81nzJLS-c.
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 = CodeAgent(tools=[*tools], model=model)
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))