Spaces:
Sleeping
Sleeping
arthi.kasturirangan@informa.com commited on
Commit ·
f6375d6
1
Parent(s): 83f2ac1
package paths
Browse files- app/api/insights.py +2 -2
- app/api/query.py +1 -1
- app/main.py +3 -3
app/api/insights.py
CHANGED
|
@@ -2,8 +2,8 @@ from fastapi import APIRouter, Depends, HTTPException
|
|
| 2 |
from sqlalchemy import desc, distinct, func
|
| 3 |
from sqlalchemy.orm import Session
|
| 4 |
|
| 5 |
-
from .
|
| 6 |
-
from .
|
| 7 |
Actor,
|
| 8 |
Address,
|
| 9 |
Category,
|
|
|
|
| 2 |
from sqlalchemy import desc, distinct, func
|
| 3 |
from sqlalchemy.orm import Session
|
| 4 |
|
| 5 |
+
from app.db.database import get_db
|
| 6 |
+
from app.db.models import (
|
| 7 |
Actor,
|
| 8 |
Address,
|
| 9 |
Category,
|
app/api/query.py
CHANGED
|
@@ -3,7 +3,7 @@ from typing import Any, Dict
|
|
| 3 |
from fastapi import APIRouter, Depends, HTTPException
|
| 4 |
from sqlalchemy.orm import Session
|
| 5 |
|
| 6 |
-
from .
|
| 7 |
|
| 8 |
router = APIRouter()
|
| 9 |
|
|
|
|
| 3 |
from fastapi import APIRouter, Depends, HTTPException
|
| 4 |
from sqlalchemy.orm import Session
|
| 5 |
|
| 6 |
+
from app.db.database import get_db
|
| 7 |
|
| 8 |
router = APIRouter()
|
| 9 |
|
app/main.py
CHANGED
|
@@ -4,9 +4,9 @@ from copilotkit.integrations.fastapi import add_fastapi_endpoint
|
|
| 4 |
from fastapi import FastAPI
|
| 5 |
from fastapi.middleware.cors import CORSMiddleware
|
| 6 |
|
| 7 |
-
from .agent.graph import graph
|
| 8 |
-
from .api import insights
|
| 9 |
-
from .db.database import Base, engine
|
| 10 |
|
| 11 |
# Create database tables
|
| 12 |
Base.metadata.create_all(bind=engine)
|
|
|
|
| 4 |
from fastapi import FastAPI
|
| 5 |
from fastapi.middleware.cors import CORSMiddleware
|
| 6 |
|
| 7 |
+
from app.agent.graph import graph
|
| 8 |
+
from app.api import insights
|
| 9 |
+
from app.db.database import Base, engine
|
| 10 |
|
| 11 |
# Create database tables
|
| 12 |
Base.metadata.create_all(bind=engine)
|