Download gen from mind00/README: direct link, hf CLI and curl.
- Browser
- Download file 477 Bytes
-
https://huggingface.co/spaces/mind00/README/resolve/main/gen
- Command line
-
hf download hf://spaces/mind00/README/gen
-
curl -L -o gen https://huggingface.co/spaces/mind00/README/resolve/main/gen
477 Bytes
| async function query(data) { | |
| const response = await fetch( | |
| "https://api-inference.huggingface.co/models/migtissera/Tess-M-Creative-v1.0", | |
| { | |
| headers: { Authorization: "Bearer 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" }, | |
| method: "POST", | |
| body: JSON.stringify(data), | |
| } | |
| ); | |
| const result = await response.json(); | |
| return result; | |
| } | |
| query({"inputs": "Can you please let us know more details about your "}).then((response) => { | |
| console.log(JSON.stringify(response)); | |
| }); |