Skip to content

Commit

Permalink
remove main for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
tommylees112 committed Sep 13, 2024
1 parent 82f2c4b commit a39de19
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import json
import os

import uvicorn
from fastapi import Depends, FastAPI, HTTPException, Request, Response
from loguru import logger
from pydantic import BaseModel, Field
Expand Down Expand Up @@ -95,9 +93,3 @@ async def webhook(
return {"message": "Invalid command"}
except Exception as e:
raise HTTPException(status_code=500, detail=str(e))


if __name__ == "__main__":
logger.info("Starting FastAPI server...")
port = int(os.environ.get("PORT", 8080))
uvicorn.run("src.main:app", host="0.0.0.0", port=port, reload=True)

0 comments on commit a39de19

Please sign in to comment.