Spaces:
Sleeping
Sleeping
File size: 1,403 Bytes
cc75d6e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | #!/bin/bash
# Quick start guide for Container Yard Environment
echo "Container Yard Environment - Quick Start"
echo "=========================================="
echo ""
# Check if HF_TOKEN is set
if [ -z "$HF_TOKEN" ]; then
echo "⚠️ HF_TOKEN not set! This is required for inference.py"
echo ""
echo "Set it with:"
echo " export HF_TOKEN='your-hugging-face-token'"
echo ""
else
echo "✓ HF_TOKEN is set"
fi
# Show environment variable options
echo ""
echo "Optional environment variables:"
echo " API_BASE_URL (default: https://api.openai.com/v1)"
echo " MODEL_NAME (default: gpt-4o-mini)"
echo ""
# Test local environment
echo "Testing local environment..."
python -c "
import sys
sys.path.insert(0, '.')
try:
from server.Container_Yard_environment import ContainerYardEnvironment
from models import ContainerYardAction
print('✓ Environment imports OK')
except Exception as e:
print(f'✗ Import error: {e}')
sys.exit(1)
# Quick environment test
env = ContainerYardEnvironment('easy')
obs = env.reset()
print(f'✓ Environment reset OK ({obs.total_containers} containers)')
" && echo "" && echo "✓ Ready to run inference!" || echo "✗ Setup failed"
echo ""
echo "To run inference:"
echo " python inference.py"
echo ""
echo "To test Docker build:"
echo " docker build -t container-yard ."
echo " docker run -p 8000:8000 container-yard"
|