Spaces:
Sleeping
Sleeping
| """ | |
| Hugging Face Spaces configuration | |
| """ | |
| import os | |
| # Hugging Face Spaces configuration | |
| title = "Diamond CSGO AI Player" | |
| description = """ | |
| # 🎮 Diamond CSGO AI Player | |
| Experience an AI agent trained with diffusion models playing Counter-Strike: Global Offensive! | |
| ## How to Play | |
| 1. Click on the game canvas to focus it | |
| 2. Use keyboard controls: | |
| - **WASD** - Movement | |
| - **Space** - Jump | |
| - **Ctrl** - Crouch | |
| - **1,2,3** - Switch weapons | |
| - **R** - Reload | |
| - **Arrow Keys** - Camera movement | |
| - **Mouse clicks** - Fire | |
| 3. Press **M** to switch between Human/AI control | |
| ## Technical Details | |
| This demo showcases the Diamond framework, which combines: | |
| - Diffusion models for world modeling | |
| - Actor-critic reinforcement learning | |
| - Multi-step planning in imagination | |
| The AI learns to play by predicting future game states and optimizing actions through a learned world model. | |
| """ | |
| # App settings | |
| port = int(os.getenv("PORT", 7860)) | |
| host = "0.0.0.0" | |