diff --git a/Google hackthon Selling Agent/app/main.py b/Google hackthon Selling Agent/app/main.py index 5b8313b..a536e41 100644 --- a/Google hackthon Selling Agent/app/main.py +++ b/Google hackthon Selling Agent/app/main.py @@ -4,8 +4,8 @@ from contextlib import asynccontextmanager from pathlib import Path import asyncio -from app.database import db -from app.routes import vendors, analytics, group_orders, chat +from .database import db +from .routes import vendors, analytics, group_orders, chat TEMPLATES_DIR = Path(__file__).parent / "templates" @@ -53,4 +53,4 @@ async def health(): if __name__ == "__main__": import uvicorn - uvicorn.run("app.main:app", host="0.0.0.0", port=1234, reload=True) + uvicorn.run("Google hackthon Selling Agent.app.main:app", host="0.0.0.0", port=1234, reload=True) diff --git a/Google hackthon Selling Agent/app/routes/analytics.py b/Google hackthon Selling Agent/app/routes/analytics.py index 557e57c..cda8380 100644 --- a/Google hackthon Selling Agent/app/routes/analytics.py +++ b/Google hackthon Selling Agent/app/routes/analytics.py @@ -1,7 +1,7 @@ from fastapi import APIRouter, Body -from app.analytics.rl_model import QLearningRestockAgent -from app.analytics.lstm_model import LSTMTimeSeriesAnalyzer -from app.analytics.gnn_model import GNNNeighborhoodAnalyzer +from ..analytics.rl_model import QLearningRestockAgent +from ..analytics.lstm_model import LSTMTimeSeriesAnalyzer +from ..analytics.gnn_model import GNNNeighborhoodAnalyzer import random router = APIRouter() diff --git a/Google hackthon Selling Agent/app/routes/group_orders.py b/Google hackthon Selling Agent/app/routes/group_orders.py index b80693e..b086f6c 100644 --- a/Google hackthon Selling Agent/app/routes/group_orders.py +++ b/Google hackthon Selling Agent/app/routes/group_orders.py @@ -7,7 +7,7 @@ from datetime import datetime, timedelta, timezone from fastapi import APIRouter from pydantic import BaseModel -from app.database import db +from ..database import db router = APIRouter() diff --git a/Google hackthon Selling Agent/app/routes/vendors.py b/Google hackthon Selling Agent/app/routes/vendors.py index 37f827e..85770c8 100644 --- a/Google hackthon Selling Agent/app/routes/vendors.py +++ b/Google hackthon Selling Agent/app/routes/vendors.py @@ -1,6 +1,6 @@ from fastapi import APIRouter, HTTPException -from app.database import db -from app.models.vendor import VendorCreate +from ..database import db +from ..models.vendor import VendorCreate from datetime import datetime, timezone router = APIRouter() diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..8ebb591 --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: uvicorn "Google hackthon Selling Agent.app.main:app" --host 0.0.0.0 --port $PORT diff --git a/nixpacks.toml b/nixpacks.toml new file mode 100644 index 0000000..a987236 --- /dev/null +++ b/nixpacks.toml @@ -0,0 +1,8 @@ +[phases.setup] +nixPkgs = ["python313", "python313Packages.pip"] + +[phases.install] +cmds = ["pip install -r requirements.txt"] + +[start] +cmd = "uvicorn \"Google hackthon Selling Agent.app.main:app\" --host 0.0.0.0 --port $PORT" diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..7abc3c9 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,8 @@ +fastapi>=0.115.0 +uvicorn[standard]>=0.30.0 +motor>=3.5.0 +pydantic>=2.9.0 +python-dotenv>=1.0.1 +jinja2>=3.1.4 +aiofiles>=24.1.0 +httpx>=0.27.0 diff --git a/runtime.txt b/runtime.txt new file mode 100644 index 0000000..e912aa6 --- /dev/null +++ b/runtime.txt @@ -0,0 +1 @@ +python-3.13