Upload folder using huggingface_hub
Browse files- .gitattributes +4 -0
- blog/.DS_Store +0 -0
- blog/assets/gen-arc.jpg +0 -0
- blog/assets/gen-eiffel-diorama.jpg +0 -0
- blog/assets/gen-moulin-rouge.jpg +0 -0
- blog/assets/gen-opera.jpg +0 -0
- blog/assets/gen-pantheon.jpg +0 -0
- blog/assets/gen-sacre-coeur.jpg +0 -0
- blog/assets/splat-eiffel.png +3 -0
- blog/assets/splat-moulin-rouge.png +3 -0
- blog/assets/splat-opera.png +3 -0
- blog/assets/splat-pantheon.png +3 -0
- blog/assets/thumbnail.jpg +0 -0
- blog/monuments-splats.md +144 -0
.gitattributes
CHANGED
|
@@ -45,3 +45,7 @@ ksplat/moulin-rouge.ksplat filter=lfs diff=lfs merge=lfs -text
|
|
| 45 |
ksplat/opera-garnier.ksplat filter=lfs diff=lfs merge=lfs -text
|
| 46 |
ksplat/pantheon.ksplat filter=lfs diff=lfs merge=lfs -text
|
| 47 |
ksplat/sacre-coeur.ksplat filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
ksplat/opera-garnier.ksplat filter=lfs diff=lfs merge=lfs -text
|
| 46 |
ksplat/pantheon.ksplat filter=lfs diff=lfs merge=lfs -text
|
| 47 |
ksplat/sacre-coeur.ksplat filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
blog/assets/splat-eiffel.png filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
blog/assets/splat-moulin-rouge.png filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
blog/assets/splat-opera.png filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
blog/assets/splat-pantheon.png filter=lfs diff=lfs merge=lfs -text
|
blog/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
blog/assets/gen-arc.jpg
ADDED
|
blog/assets/gen-eiffel-diorama.jpg
ADDED
|
blog/assets/gen-moulin-rouge.jpg
ADDED
|
blog/assets/gen-opera.jpg
ADDED
|
blog/assets/gen-pantheon.jpg
ADDED
|
blog/assets/gen-sacre-coeur.jpg
ADDED
|
blog/assets/splat-eiffel.png
ADDED
|
Git LFS Details
|
blog/assets/splat-moulin-rouge.png
ADDED
|
Git LFS Details
|
blog/assets/splat-opera.png
ADDED
|
Git LFS Details
|
blog/assets/splat-pantheon.png
ADDED
|
Git LFS Details
|
blog/assets/thumbnail.jpg
ADDED
|
|
blog/monuments-splats.md
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: "Multimedia building blocks: an agent built a 3D Paris gallery from two Hugging Face Spaces"
|
| 3 |
+
thumbnail: ./assets/thumbnail.jpg
|
| 4 |
+
authors:
|
| 5 |
+
- user: mishig
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
# Multimedia building blocks: an agent built a 3D Paris gallery from two Hugging Face Spaces
|
| 9 |
+
|
| 10 |
+
I asked a coding agent to build a beautiful website showcasing the monuments of
|
| 11 |
+
Paris as 3D Gaussian splats. I never opened an image generator. I never touched a
|
| 12 |
+
3D reconstruction tool. The agent produced every asset (the images **and** the 3D
|
| 13 |
+
splats) by calling two Hugging Face Spaces directly, then wired them into a
|
| 14 |
+
cinematic viewer.
|
| 15 |
+
|
| 16 |
+
Here's the result, live as a static Space:
|
| 17 |
+
|
| 18 |
+
👉 **[mishig/monuments-de-paris](https://huggingface.co/spaces/mishig/monuments-de-paris)**
|
| 19 |
+
|
| 20 |
+
<!-- VIDEO: record a screen capture of the rotating splats and save it here:
|
| 21 |
+
blog/assets/splats-rotating.mp4 (poster falls back to the still below) -->
|
| 22 |
+
<video autoplay loop muted playsinline
|
| 23 |
+
poster="./assets/splat-eiffel.png"
|
| 24 |
+
src="./assets/splats-rotating.mp4"
|
| 25 |
+
style="width:100%;border-radius:8px;"></video>
|
| 26 |
+
|
| 27 |
+
This post is about *how* that's possible now, and why I think it's a preview of
|
| 28 |
+
how a lot of multimedia software gets built from here on.
|
| 29 |
+
|
| 30 |
+
## The building-block economy comes for multimedia
|
| 31 |
+
|
| 32 |
+
Mitchell Hashimoto recently described a shift he calls the
|
| 33 |
+
[building block economy](https://mitchellh.com/writing/building-block-economy):
|
| 34 |
+
the most effective path to software is no longer a polished monolith, but small,
|
| 35 |
+
well-documented components that others (increasingly *agents*) can assemble.
|
| 36 |
+
His key observation: AI is okay at building everything from scratch, but it is
|
| 37 |
+
**really good at gluing together** proven pieces.
|
| 38 |
+
|
| 39 |
+
That thesis has mostly been told with *code* libraries. But the same forces are
|
| 40 |
+
hitting **multimedia AI**. The hard part of using a state-of-the-art image model,
|
| 41 |
+
a video model, a TTS model, or a 3D reconstruction model was never the model. It
|
| 42 |
+
was the integration: SDKs, weights, GPUs, input formats, polling. If each model
|
| 43 |
+
were instead a documented, callable block, an agent could glue them together the
|
| 44 |
+
same way it globs together npm packages.
|
| 45 |
+
|
| 46 |
+
That's exactly what Hugging Face Spaces have quietly become.
|
| 47 |
+
|
| 48 |
+
## Every Space is a building block, via `agents.md`
|
| 49 |
+
|
| 50 |
+
The Hub hosts thousands of state-of-the-art models (a huge share of them
|
| 51 |
+
**open-weights**), and most are deployed as interactive **Spaces**. As of now,
|
| 52 |
+
every Gradio Space also exposes a plain-text
|
| 53 |
+
[`agents.md`](https://huggingface.co/docs/hub/en/spaces-agents) that tells an agent
|
| 54 |
+
*exactly* how to call it:
|
| 55 |
+
|
| 56 |
+
```bash
|
| 57 |
+
curl https://huggingface.co/spaces/VAST-AI/TripoSplat/agents.md
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
returns everything needed in one shot: the schema URL, the call and poll templates,
|
| 61 |
+
how to upload files, and the auth hint:
|
| 62 |
+
|
| 63 |
+
```
|
| 64 |
+
API schema: GET .../gradio_api/info
|
| 65 |
+
Call endpoint: POST .../gradio_api/call/v2/{endpoint} {"param_name": value, ...}
|
| 66 |
+
Poll result: GET .../gradio_api/call/{endpoint}/{event_id}
|
| 67 |
+
File inputs: POST .../gradio_api/upload -F "files=@file.ext"
|
| 68 |
+
Auth: Bearer $HF_TOKEN
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
No client library. No hardcoded integration. An agent reads that, and it can drive
|
| 72 |
+
the Space end to end. Set an [`HF_TOKEN`](https://huggingface.co/settings/tokens)
|
| 73 |
+
and you're going.
|
| 74 |
+
|
| 75 |
+
The real unlock is **chaining**: the output of one Space becomes the input to the
|
| 76 |
+
next. Prompt → image → 3D. That's the whole pipeline behind this gallery.
|
| 77 |
+
|
| 78 |
+
## The worked example: Paris monuments → splats
|
| 79 |
+
|
| 80 |
+
The agent chained two Spaces:
|
| 81 |
+
|
| 82 |
+
1. **Image:** an image-generation Space turned each monument into a clean,
|
| 83 |
+
dark-background "specimen" shot (and the Eiffel Tower into a little diorama on a
|
| 84 |
+
plinth). Prompt in, image out.
|
| 85 |
+
2. **Splat:** [`VAST-AI/TripoSplat`](https://huggingface.co/spaces/VAST-AI/TripoSplat)
|
| 86 |
+
reconstructed a 3D Gaussian splat (`.ply`) from each single image. Image in,
|
| 87 |
+
3D out.
|
| 88 |
+
|
| 89 |
+
Generated image → reconstructed splat, for two of the six:
|
| 90 |
+
|
| 91 |
+
| Generated image (Space #1) | 3D splat in the viewer (Space #2) |
|
| 92 |
+
|---|---|
|
| 93 |
+
|  |  |
|
| 94 |
+
|  |  |
|
| 95 |
+
|
| 96 |
+
The six source images the agent generated, all isolated on black, ready for
|
| 97 |
+
single-image 3D reconstruction:
|
| 98 |
+
|
| 99 |
+

|
| 100 |
+

|
| 101 |
+

|
| 102 |
+

|
| 103 |
+
|
| 104 |
+
From there the agent did the "glue" work too. It noticed TripoSplat outputs are
|
| 105 |
+
Y-down and flipped them upright, auto-framed each monument, compressed the `.ply`
|
| 106 |
+
files to `.ksplat` (~3× smaller, so they load fast), built a Three.js viewer with a
|
| 107 |
+
scroll-to-switch and drag-to-rotate UI, and deployed the whole thing as a static
|
| 108 |
+
Space. The only human inputs were taste-level: "make it zoomed out," "replace the
|
| 109 |
+
obelisk with something better for splatting," "the transition lingers too long."
|
| 110 |
+
|
| 111 |
+
Several of those steps were **the agent reacting to reality**. A wide glass pyramid
|
| 112 |
+
splats poorly. A thin obelisk is dull. A single-view reconstruction infers the
|
| 113 |
+
back. That is exactly the "outsourced R&D, fast iteration" loop the building-block
|
| 114 |
+
economy predicts, except the R&D was a conversation.
|
| 115 |
+
|
| 116 |
+
## Why this matters
|
| 117 |
+
|
| 118 |
+
- **Models become composable.** A SOTA splat model and a SOTA image model, from
|
| 119 |
+
different orgs, chained with zero integration code. The Hub's open-weights
|
| 120 |
+
catalog turns into a library of callable multimedia primitives.
|
| 121 |
+
- **Agents prefer what's documented and reachable.** `agents.md` makes a Space
|
| 122 |
+
trivially reachable, so an agent will pick it over a model it has to set up by
|
| 123 |
+
hand. That is the same dynamic Hashimoto flags for open-source libraries.
|
| 124 |
+
- **The barrier was integration, and it's largely gone.** "Turn a prompt into a
|
| 125 |
+
rotating 3D monument" used to be a project. Here it was a step in a pipeline.
|
| 126 |
+
|
| 127 |
+
## Try it yourself
|
| 128 |
+
|
| 129 |
+
Point your own agent at a Space's `agents.md` and let it cook:
|
| 130 |
+
|
| 131 |
+
```bash
|
| 132 |
+
# image generation
|
| 133 |
+
curl https://huggingface.co/spaces/ideogram-ai/ideogram4/agents.md
|
| 134 |
+
# single-image to 3D gaussian splat
|
| 135 |
+
curl https://huggingface.co/spaces/VAST-AI/TripoSplat/agents.md
|
| 136 |
+
```
|
| 137 |
+
|
| 138 |
+
Paste either link into your coding agent (Claude Code, etc.), set your
|
| 139 |
+
`HF_TOKEN`, and ask it to build something. The full, reproducible pipeline for this
|
| 140 |
+
gallery, the scripts that hit those two `agents.md` endpoints, lives in the
|
| 141 |
+
[Space repo](https://huggingface.co/spaces/mishig/monuments-de-paris/tree/main).
|
| 142 |
+
|
| 143 |
+
The building blocks are sitting right there on the Hub. The agents already know how
|
| 144 |
+
to glue.
|