rajeshthangaraj1 commited on
Commit
94eb831
·
verified ·
1 Parent(s): 0670c5b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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.close()
 
 
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()