Changes committed
This commit is contained in:
16
run_backend.sh
Executable file
16
run_backend.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user