Files
OCR/run_backend.sh
2026-06-01 21:49:53 +05:30

17 lines
457 B
Bash
Executable File

#!/bin/bash
# Navigate to the backend directory
cd "$(dirname "$0")/backend" || exit
# Activate the virtual environment
if [ -d "venv" ]; then
echo "Activating virtual environment..."
source venv/bin/activate
else
echo "Warning: Virtual environment 'venv' not found. Attempting to run without it..."
fi
# Run the FastAPI server
echo "Starting OCR Backend Server on http://0.0.0.0:8000..."
uvicorn main:app --reload --host 0.0.0.0 --port 8000