Skip to main content

FluffyModel: Hugging Face Space Automation Tool

FluffyModel is a user-friendly CLI tool designed to seamlessly set up an inference endpoint for open-source ML models. It leverages Gradio and Hugging Face spaces to achieve this.

As a developer, you might have wanted to integrate ML models into your web and mobile apps. However, doing so usually necessitates hosting the ML model on some platform. While there are numerous hosting providers available, including industry giants like Amazon AWS and Google GCP, the process can be intricate. Often, it demands the construction of a custom Flask REST API.

FluffyModel simplifies this process. It aids in creating, structuring, and setting up a Hugging Face space for swift deployment. With a single command, users can automate the typically manual process of creating and configuring a new Hugging Face space complete with a REST API endpoint.

Table of Contents

Features

  • REST API endpoint: Use the endpoint to run an inference from any language.
  • Space Creation: Quickly create a new Hugging Face space.
  • Predefined Structure: Automatically structure the space with necessary files such as requirements.txt, README.md, and app.py.
  • Easy Deployment: Commit and push changes to the space in one go.
  • Virtual Environment Setup: Automatically set up a virtual environment within the space, ensuring dependencies are isolated.

Prerequisites

Before using FluffyModel, ensure you have:

  • Python 3.x installed.
  • git installed and available in your system's PATH.
  • A Hugging Face account and a corresponding API token.

Installation

pip install fluffymodel

Usage

Once installed, 'FluffyModel' can be used with a single command, where 'git-name' is name of the repository on huggingface.co. e.g. If you want to create an endpoint for Facebook's resnet , then the gitname would be facebook/detr-resnet-50

fluffymodel <git-name>

Here's what happens next:

  • Space Creation: A new Hugging Face space will be created.
  • Repository Configuration: The repository of the space is cloned, structured, and a virtual environment is set up.
  • Push & Deploy: All changes are committed and pushed to the space.
  • Instructions Display: A URL to the space and a curl command for the inference endpoint are displayed. Users can visit the URL to monitor the build and later test the endpoint using the provided curl command.

Contributing

If you have suggestions, bug reports, or enhancements, please:

  • Open an Issue: Before making any changes, open an issue in the GitHub repository to discuss your proposed changes.
  • Fork & Clone: Fork the repository, clone it locally, and set up a virtual environment.
  • Make Changes: Implement your changes and test them thoroughly.
  • Submit a Pull Request: Once you're satisfied with your changes, submit a pull request for review.

License

'FluffyModel' is licensed under the MIT License. All rights reserved.

Metadata

Release files for fluffymodel 0.1.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fluffymodel 0.1.10
File Size Uploaded
fluffymodel-0.1.10.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fluffymodel 0.1.10
File Interpreter ABI Platform
fluffymodel-0.1.10-py3-none-any.whl Python 3 none any Details

Total release size: 11.3 kB

Release files / fluffymodel-0.1.10.tar.gz

Download URL fluffymodel-0.1.10.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4a968c57b0e8321df97002a374b01c5b0662564bab7575a2bee7388edf84bbc8
BLAKE2b-256 checksum
How to use checksums
663eeea53563ac765e093dc902ee5564b915ccc02287d4d8fea83e261163d23b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.10.12 Darwin/22.6.0

Release files / fluffymodel-0.1.10-py3-none-any.whl

Download URL fluffymodel-0.1.10-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
44228c1afe83416ec48f8f2245c69f0dbc719fa3f223d38a18f457aa54be4f4a
BLAKE2b-256 checksum
How to use checksums
11c0f019723a1edf883bdcb2821d7f6ba801a4101471517fe4d1f17e95cb683e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.10.12 Darwin/22.6.0

Release history Release notifications | RSS feed

0.1.17

2 release files

0.1.16

2 release files

0.1.15

2 release files

0.1.14

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.11

2 release files

This release

0.1.10 This release

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page