File size: 1,084 Bytes
9de5fe5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# WorldGen β€’ Text-to-3D Scene Generator

This Hugging Face Space allows you to generate 3D scenes from English text prompts using the WorldGen framework.

## πŸš€ How to Use

1. Enter a scene description in English (e.g., `a neon-lit cyberpunk street with rain reflections, highly detailed`)
2. Click **Generate 3D Scene**
3. Download the ZIP file containing the generated 3D assets

## πŸ” Hugging Face Token

This app downloads model files from Hugging Face Hub. If you encounter `401 Unauthorized` errors, you may need to provide a Hugging Face token.

### Setting Token in Space

1. Go to your Space β†’ **Settings** β†’ **Secrets**
2. Add a new secret:
   - Name: `HF_TOKEN`
   - Value: your Hugging Face access token

The app will automatically read this token via `os.getenv("HF_TOKEN")`.

## βš™οΈ Runtime Notes

- CPU-only mode is enabled by default to avoid CUDA errors
- Temporary files are cleaned automatically after each run
- Model files are downloaded from `mit-han-lab/svdq-int4-flux.1-dev`

## πŸ“¦ Dependencies

See `requirements.txt` for full dependency list.