Spaces:
Running on Zero
Running on Zero
| 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"]) | |
| ``` | |