Spaces:
Paused
Paused
Download client/src/api.ts from hologramicon/3d: direct link, hf CLI and curl.
- Browser
- Download file 209 Bytes
-
https://huggingface.co/spaces/hologramicon/3d/resolve/main/client/src/api.ts
- Command line
-
hf download hf://spaces/hologramicon/3d/client/src/api.ts
-
curl -L -o api.ts https://huggingface.co/spaces/hologramicon/3d/resolve/main/client/src/api.ts
209 Bytes
| export async function generate(prompt:string){ | |
| const res = await fetch('/api/generate',{ method:'POST', headers:{'Content-Type':'application/json'}, body: JSON.stringify({ prompt }) }) | |
| return res.json() | |
| } | |