File size: 1,342 Bytes
ca7940d
4968330
ca7940d
 
 
 
 
 
 
 
4968330
ca7940d
 
4968330
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: Fast Image Studio
emoji: 🚀
colorFrom: pink
colorTo: blue
sdk: gradio
sdk_version: 6.13.0
app_file: app.py
pinned: false
license: mit
short_description: fast image editing using FireRed Image Edit and gr.Server
---

# Studio 01 — Image Edit

A custom-frontend image editing demo powered by [FireRed-Image-Edit 1.1](https://huggingface.co/FireRedTeam/FireRed-Image-Edit-1.1) and [`gr.Server`](https://www.gradio.app/main/docs/gradio/server) on free ZeroGPU.

The Python backend exposes a single queued endpoint (`/edit_image`) and serves a hand-authored HTML/CSS/JS page at `/`. The same endpoint is also reachable via `gradio_client` and as an MCP tool.

## Files

- `app.py``gr.Server` backend with a single `@server.api` route and a homepage route.
- `index.html` — custom frontend, calls the backend through `@gradio/client`.
- `qwenimage/` — pipeline modules (copy from the upstream FireRed-Image-Edit-1.0-Fast Space).
- `requirements.txt` — Python deps.

## Calling from Python

```python
from gradio_client import Client, handle_file

client = Client("ysharma/firered-server-studio")  # your Space ID
result = client.predict(
    image=handle_file("photo.jpg"),
    prompt="Convert it to black and white with subtle film grain.",
    api_name="/edit_image",
)
print(result["image"]["url"], result["seed"])
```