GithubHelp home page GithubHelp logo

erucix / huggingface-api Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 107 KB

An unofficial reverse engineered NodeJS package of Huggingface AI.

License: MIT License

JavaScript 100.00%
ai ai-api api huggingface nodejs huggingface-api

huggingface-api's Introduction

Huggingface-API

Extremely lightweight and flexible ;)


huggingface javascript library logo

๐Ÿ˜Š How To Use?

const hug = require("./hug")
const { env } = require("process")

env.TOKEN = "MY_TOKEN_HERE"    // From cookies
env.HFCHAT = "MY_HFCHAT_HERE" // From cookies

hug("Hello there")
    .then(data => console.log(data))
> Hello! How can I assist you today?

Get your hf-chat and token value from cookies and your'e good to go.

๐Ÿค” How to use executables?

First of all set the environment variables as below:

Windows:

  • Downlaod hug_win.exe file from the release page.
  • Get the token and hf-chat from cookies panel and use them as follows.
set TOKEN=YOUR_TOKEN_HERE
set HFCHAT=YOUR_HFCHAT_HERE

Linux and MacOS:

  • Downlaod hug_linux or hug_mac file from the release page.
  • Get the token and hf-chat from cookies panel and use them as follows.
export TOKEN="YOUR_TOKEN_HERE"
export HFCHAT="YOUR_HFCHAT_HERE"

Note: Unofficial and reverse engineered Huggingface API. This software cannot be used for any unlawful activities and commercial purpose.

huggingface-api's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

huggingface-api's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.