File size: 1,165 Bytes
83ccd6c
2c304fc
a30d381
2c304fc
a30d381
83ccd6c
2c304fc
 
a30d381
83ccd6c
 
2c304fc
 
a30d381
 
 
2c304fc
a30d381
 
 
 
 
 
 
2c304fc
a30d381
 
 
 
2c304fc
a30d381
 
 
 
 
2c304fc
a30d381
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
---
title: AutoApp Builder
emoji: 🛠️
colorFrom: blue
colorTo: indigo
sdk: docker
app_port: 7860
license: mit
short_description: Generate deployable HF Spaces from a prompt.
---

# AutoApp Builder

A Docker-based Hugging Face Space that turns a product prompt into a **real,
deployable Space starter repository** — the plan *and* the source files are
generated by a Hugging Face LLM (`Qwen2.5-Coder-32B-Instruct` and fallbacks).

## What it does
- LLM designs the app: name, SDK choice, summary, features.
- LLM writes the actual files (README with Space metadata, app.py / Dockerfile /
  index.html, requirements.txt, …).
- Generated files are written safely (path-sanitized) and exported as a ZIP.
- If inference is unavailable, it falls back to a deterministic template so it
  never hard-fails.

## Configuration
- Add a secret named **`HF_TOKEN`** with the **"Make calls to Inference
  Providers"** permission (*Settings → Variables and secrets*).
- Optional override: `TEXT_MODEL`.

## Local run
```bash
docker build -t autoapp-builder .
docker run -p 7860:7860 -e HF_TOKEN=hf_your_token_here autoapp-builder
```

Then open `http://localhost:7860`.