Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -26,9 +26,10 @@ try:
|
|
26 |
examples=["Prime factorization of 68"],
|
27 |
title="Agent with MCP Tools",
|
28 |
description="This is a simple agent that uses MCP tools to answer questions.",
|
29 |
-
messages=[],
|
30 |
)
|
31 |
|
32 |
demo.launch()
|
33 |
finally:
|
34 |
-
mcp_client
|
|
|
|
26 |
examples=["Prime factorization of 68"],
|
27 |
title="Agent with MCP Tools",
|
28 |
description="This is a simple agent that uses MCP tools to answer questions.",
|
29 |
+
#messages=[],
|
30 |
)
|
31 |
|
32 |
demo.launch()
|
33 |
finally:
|
34 |
+
if hasattr(mcp_client, "close"):
|
35 |
+
mcp_client.close()
|