File size: 529 Bytes
b42dfef
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# Start the FastAPI backend

echo "Starting AnyCoder FastAPI Backend..."
echo "API will be available at: http://localhost:8000"
echo "API docs at: http://localhost:8000/docs"
echo ""

# Check if HF_TOKEN is set
if [ -z "$HF_TOKEN" ]; then
    echo "⚠️  WARNING: HF_TOKEN environment variable is not set!"
    echo "Please set it with: export HF_TOKEN=your_token_here"
    echo ""
fi

# Activate virtual environment
source /Users/ahsenkhaliq/anycoder/.venv/bin/activate

# Start the backend
python backend_api.py