{"repo":"fwdai/hugging-face","free":true,"listed":false,"github":"https://github.com/fwdai/hugging-face","clone":"git clone https://github.com/fwdai/hugging-face.git","description":"Ruby client for Hugging Face API","language":"Ruby","stars":50,"topics":["ai","api-client","artificial-intelligence","huggingface","machine-learning","ml","ruby"],"license":"MIT","category":"machine-learning","readme_excerpt":"hugging-face 🤗 HuggingFace API wrapper for Ruby Installation Install the gem and add to the application's Gemfile by executing: If bundler is not being used to manage dependencies, install the gem by executing: Usage Inference API The inference API is a free Machine Learning API from Hugging Face. It is meant for prototyping and not production use, see below for Inference Endpoints, the product for use with production LLMs. Instantiate a HuggingFace Inference API client: Question answering: Text generation: Summarization: Embedding: Sentiment: Inference Endpoints With this same gem, you can also access endpoints, which are best described by Hugging Face: \"Inference Endpoints provides a secure production solution to easily deploy models on a dedicated and autoscaling infrastructure managed by Hugging Face. An Inference Endpoint is built from a model from the Hub.\" Once you've created an endpoint by choosing a model and desired infrastructure, you'll be given an endpoint URL, something like: https://eyic1edp3ah0g5ln.us-east-1.aws.endpoints.huggingface.cloud You'll need your token to access your endpoint if you've chosen for it to be protected. You can also choose to have a public endpoint. Since you choose the LLM task in your endpoint config (e.g. Text Classification, Summarisation, Question answering), there is no need to pass that argument. To access from the gem. instantiate a HuggingFace Endpoint API client: Example with input from question answering task: Example call to","default_branch":null,"files":null,"tree":[],"storefront":"/r/fwdai","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fwdai/hugging-face/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}