#!/bin/bash echo "Starting FastAPI Backend and Cron Worker..." # Run FastAPI on internal port 8000 in the background uvicorn backend.main:app --host 127.0.0.1 --port 8000 & echo "Starting Next.js Frontend..." # Navigate to the internal frontend folder where Next.js was built cd frontend # Start Next.js on the public port 7860 exposed by Hugging Face npm run start -- -p 7860