Spaces:
Sleeping
Sleeping
Update api_server - deployment
Browse files
backend/server/api_server.py
CHANGED
|
@@ -5,9 +5,9 @@ from dotenv import load_dotenv
|
|
| 5 |
from fastapi import FastAPI, HTTPException
|
| 6 |
from pydantic import BaseModel
|
| 7 |
from typing import List, Dict, Any, Optional
|
| 8 |
-
from
|
| 9 |
-
from
|
| 10 |
-
from
|
| 11 |
|
| 12 |
load_dotenv()
|
| 13 |
app = FastAPI(title="NL2SQL Backend API")
|
|
|
|
| 5 |
from fastapi import FastAPI, HTTPException
|
| 6 |
from pydantic import BaseModel
|
| 7 |
from typing import List, Dict, Any, Optional
|
| 8 |
+
from src.database.db_manager import get_db_connection
|
| 9 |
+
from src.nl2sql.hf_engine import get_models, DEFAULT_MODEL_ID
|
| 10 |
+
from src.nl2sql.sql_agent import nl2sql_agent
|
| 11 |
|
| 12 |
load_dotenv()
|
| 13 |
app = FastAPI(title="NL2SQL Backend API")
|