File size: 967 Bytes
02c6351
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
"""
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"