Spaces:
Sleeping
Sleeping
Update src/main.py
Browse files- src/main.py +3 -0
src/main.py
CHANGED
|
@@ -5,6 +5,9 @@ from pydantic import BaseModel , Field
|
|
| 5 |
from langgraph.checkpoint.postgres import PostgresSaver
|
| 6 |
from langchain_core.messages import HumanMessage
|
| 7 |
import os
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
app = FastAPI(
|
| 10 |
title="Text2SQL Agent API",
|
|
|
|
| 5 |
from langgraph.checkpoint.postgres import PostgresSaver
|
| 6 |
from langchain_core.messages import HumanMessage
|
| 7 |
import os
|
| 8 |
+
from dotenv import load_dotenv
|
| 9 |
+
|
| 10 |
+
load_dotenv()
|
| 11 |
|
| 12 |
app = FastAPI(
|
| 13 |
title="Text2SQL Agent API",
|