Download lib/text2img.js from RamaZyx/StableBOT: direct link, hf CLI and curl.
- Browser
- Download file 399 Bytes
-
https://huggingface.co/RamaZyx/StableBOT/resolve/main/lib/text2img.js
- Command line
-
hf download hf://RamaZyx/StableBOT/lib/text2img.js
-
curl -L -o text2img.js https://huggingface.co/RamaZyx/StableBOT/resolve/main/lib/text2img.js
399 Bytes
| async function textToImage(text) { | |
| try { | |
| const { data } = await axios.get("https://tti.photoleapapp.com/api/v1/generate?prompt=" + text) | |
| const result = { | |
| status: true, | |
| url: data.result_url | |
| } | |
| return result | |
| } catch (err) { | |
| const result = { | |
| status: false, | |
| message: String(err) | |
| } | |
| console.log(result) | |
| return result | |
| } | |
| } | |
| export { textToImage } |