File size: 1,433 Bytes
434c049
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
title: AI Creative Studio
emoji: 🎡
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.28.0
app_file: app.py
pinned: false
hardware: zero-a10g
---

# AI Creative Studio β€” abalanescu/flow

> Multi-modal AI showcase leveraging **ZeroGPU** (40 min/day A100) + **Inference API** (~$2/mo credit).

## πŸš€ Quick Start

```bash
# 1. Clone & set up
git clone https://huggingface.co/spaces/abalanescu/flow
cd flow
cp .env.example .env
export $(cat .env | grep -v '^#' | xargs)

# 2. Install deps
uv pip install -e ".[dev,telemetry]"

# 3. Run
python -m app
```

## πŸ§ͺ Local Test (no GPU needed for inference API calls)

```bash
python -c "from app import demo; demo()"
```

## πŸ“ Project Structure

```
hf/
β”œβ”€β”€ app.py              # Gradio app (5 tabs)
β”œβ”€β”€ pyproject.toml      # Dependencies
β”œβ”€β”€ .env.example        # Secrets template
β”œβ”€β”€ .gitignore
β”œβ”€β”€ freight/            # Freight SFT generator
β”‚   β”œβ”€β”€ generator.py
β”‚   β”œβ”€β”€ sample_data/
β”‚   └── train_qwen_lora.py
β”œβ”€β”€ scripts/            # Utility scripts
β”œβ”€β”€ docs/               # Documentation
└── tests/              # (TODO: add tests)
```

## πŸ”‘ Two HF Resources

| Resource | What it runs | How it's billed |
|---|---|---|
| **ZeroGPU** | Local GGUF models via `@spaces.GPU` | 40 min/day A100, free |
| **Inference API** | Serverless hosted models | ~$2/mo credit |

## πŸ“– License

MIT