Spaces:
Sleeping
Sleeping
| # 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" | |