Spaces:
Runtime error
Runtime error
added model
Browse files
app.py
CHANGED
@@ -13,6 +13,8 @@ try:
|
|
13 |
)
|
14 |
|
15 |
tools = mcp_client.get_tools()
|
|
|
|
|
16 |
agent = CodeAgent(tools=[*tools], model=model)
|
17 |
|
18 |
def call_agent(message, history):
|
@@ -28,4 +30,4 @@ try:
|
|
28 |
|
29 |
demo.launch()
|
30 |
finally:
|
31 |
-
mcp_client.
|
|
|
13 |
)
|
14 |
|
15 |
tools = mcp_client.get_tools()
|
16 |
+
|
17 |
+
model = InferenceClientModel()
|
18 |
agent = CodeAgent(tools=[*tools], model=model)
|
19 |
|
20 |
def call_agent(message, history):
|
|
|
30 |
|
31 |
demo.launch()
|
32 |
finally:
|
33 |
+
mcp_client.disconnect()
|