Socket
Book a DemoInstallSign in
Socket

@onepunya/hugging-face-loader

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onepunya/hugging-face-loader

try running your hugging face model

1.0.4
latest
npmnpm
Version published
Weekly downloads
4
300%
Maintainers
1
Weekly downloads
 
Created
Source

npm i @onepunya/hugging-face-loader

const trained = require('@onepunya/hugging-face-loader');
// Take the hugging face model for example: https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl-base-1.0 in huggingface.co

trained("cute girl", "hugging face key", "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl-base-1.0")
  .then(data => console.log(data)) // result is arraybuffer you can use "fs". to save the image
  .catch(err => console.error(err));
  
  npm i fs
  
fs.writeFileSync(data, `/image.jpg`)

Kontak Pengembang Api

see available models and apikey at hugging face

Keywords

ai

FAQs

Package last updated on 03 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.