Skip to main content

embeddable huggingface downloader web ui

Project description

HuggingFS

A Web UI for downloading Huggingface repositories.

Install

git clone https://github.com/cocktailpeanut/huggingfs
cd huggingfs
pip install -r requirements.txt

Usage

1. Minimal

Let's say you want to set the root path of the file system as ./models.

Create a file named hfs.json:

{
  "fs": [{
    "path": "models",
  }]
}

Then start the UI:

huggingfs hfs.json

2. Curated Options

The minimal version only lets you download by entering the HuggingFace ID (example: KwaiVGI/LivePortrait).

But often you will want to provide a pre-set options, from which the end users can select from. In this case, you can specify the options array:

{
  "fs": [{
    "path": "models",
    "options": [
      "nvidia/Minitron-4B-Base",
      "coqui/XTTS-v2",
      "KwaiVGI/LivePortrait",
      "BAAI/bge-m3",
      "vidore/colpali"
    ]
  }]
}

Now start huggingfs

huggingfs hfs.json

3. Multiple Folders

Often you may want to store files to multiple folders.

For example, you may want to allow:

  1. downloading model checkpoints to stable-diffusion-webui/models/Stable-diffusion
  2. downloading Loras to stable-diffusion-webui/models/Lora

In this case you can simply extend the fs array like this:

This will create a dropdown

{
  "fs": [{
    "path": "stable-diffusion-webui/models/Stable-diffusion",
    "options": [
      "stabilityai/stable-diffusion-3-medium",
      "xinsir/controlnet-union-sdxl-1.0",
      "fal/AuraFlow"
    ]
  }, {
    "path": "stable-diffusion-webui/models/Lora",
    "options": [
      "2vXpSwA7/iroiro-lora",
      "Cseti/Basic_camera_motion_LoRAs_sd15-ad2-v1"
    ]
  }]
}

And simply restart the app with:

huggingfs hfs.json

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hffs-0.7.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

hffs-0.7-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file hffs-0.7.tar.gz.

File metadata

  • Download URL: hffs-0.7.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/40.0 requests/2.32.3 requests-toolbelt/1.0.0 urllib3/2.2.2 tqdm/4.66.4 importlib-metadata/8.0.0 keyring/24.2.0 rfc3986/1.5.0 colorama/0.4.6 CPython/3.10.6

File hashes

Hashes for hffs-0.7.tar.gz
Algorithm Hash digest
SHA256 65da43cd8c86c20d51b2faf1fc8b33f4a4232f035e486c82bab33bce28efa540
MD5 1daefea340ee2dc487c7dbfbc89c87a7
BLAKE2b-256 8023ffd9a39957f519516df8e4da8b32f08dcbe47d62d6cea819fc58187261c1

See more details on using hashes here.

File details

Details for the file hffs-0.7-py3-none-any.whl.

File metadata

  • Download URL: hffs-0.7-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/40.0 requests/2.32.3 requests-toolbelt/1.0.0 urllib3/2.2.2 tqdm/4.66.4 importlib-metadata/8.0.0 keyring/24.2.0 rfc3986/1.5.0 colorama/0.4.6 CPython/3.10.6

File hashes

Hashes for hffs-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 846fbb47bc83a3f28d214d616342cbbb1199988dafc6b87ddb7ead62741a1cf4
MD5 871b4158aa0ecaf25bace4360b75a332
BLAKE2b-256 4edbfef00b6d852cff158dfcac23a90e703e95d315a846e65f9d2887ad7f7e27

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page