CoolFace
Apppublic

akhaliq/anycoder

sourceHugging Faceupdated 5mo agoView on Hugging Face
3.3klikes
start_backend.sh22 linesDownload Raw Back to root
1#!/bin/bash2# Start the FastAPI backend3 4echo "Starting AnyCoder FastAPI Backend..."5echo "API will be available at: http://localhost:8000"6echo "API docs at: http://localhost:8000/docs"7echo ""8 9# Check if HF_TOKEN is set10if [ -z "$HF_TOKEN" ]; then11    echo "⚠️  WARNING: HF_TOKEN environment variable is not set!"12    echo "Please set it with: export HF_TOKEN=your_token_here"13    echo ""14fi15 16# Activate virtual environment17source /Users/ahsenkhaliq/anycoder/.venv/bin/activate18 19# Start the backend20python backend_api.py21 22