Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ from pydantic import BaseModel
|
|
| 10 |
from contextlib import asynccontextmanager
|
| 11 |
from langchain_mcp_adapters.client import MultiServerMCPClient
|
| 12 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
| 13 |
-
from
|
| 14 |
from langchain_core.messages import HumanMessage
|
| 15 |
|
| 16 |
|
|
@@ -126,4 +126,5 @@ async def chat(
|
|
| 126 |
return {"error": f"Agent Error: {str(e)}"}
|
| 127 |
|
| 128 |
if __name__ == "__main__":
|
| 129 |
-
uvicorn.run(app, host="0.0.0.0", port=7860)
|
|
|
|
|
|
| 10 |
from contextlib import asynccontextmanager
|
| 11 |
from langchain_mcp_adapters.client import MultiServerMCPClient
|
| 12 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
| 13 |
+
from langgraph.prebuilt import create_react_agent
|
| 14 |
from langchain_core.messages import HumanMessage
|
| 15 |
|
| 16 |
|
|
|
|
| 126 |
return {"error": f"Agent Error: {str(e)}"}
|
| 127 |
|
| 128 |
if __name__ == "__main__":
|
| 129 |
+
uvicorn.run(app, host="0.0.0.0", port=7860)
|
| 130 |
+
|