chore: document and standardize hosts/ports across apps

This commit is contained in:
2025-09-10 01:21:15 +05:30
parent 701ff61214
commit 70cfff90ce
13 changed files with 218 additions and 42 deletions

View File

@@ -5,7 +5,7 @@ from typing import List, Optional
import io
import os
import asyncio
import uvicorn
from dotenv import load_dotenv
load_dotenv()
@@ -157,8 +157,6 @@ async def extract_csv(files: List[UploadFile] = File(...), filename: Optional[st
# Entrypoint (same pattern as your selenium app)
# -------------------------------------------------
if __name__ == "__main__":
import uvicorn
host = os.getenv("HOST")
port = int(os.getenv("PORT"))
reload_flag = os.getenv("RELOAD", "false").lower() == "true"
uvicorn.run(app, host=host, port=port, reload=reload_flag)
uvicorn.run(app, host=host, port=port)