Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Google hackthon Selling Agent/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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)
6 changes: 3 additions & 3 deletions Google hackthon Selling Agent/app/routes/analytics.py
Original file line number Diff line number Diff line change
@@ -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()
Expand Down
2 changes: 1 addition & 1 deletion Google hackthon Selling Agent/app/routes/group_orders.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
4 changes: 2 additions & 2 deletions Google hackthon Selling Agent/app/routes/vendors.py
Original file line number Diff line number Diff line change
@@ -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()
Expand Down
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: uvicorn "Google hackthon Selling Agent.app.main:app" --host 0.0.0.0 --port $PORT
8 changes: 8 additions & 0 deletions nixpacks.toml
Original file line number Diff line number Diff line change
@@ -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"
8 changes: 8 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-3.13