Skip to main content

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

Release files for hffs 0.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 hffs 0.10
File Size Uploaded
hffs-0.10.tar.gz 3.3 kB Details

Built distribution (wheel)

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

Total release size: 7.1 kB

Release files / hffs-0.10.tar.gz

Download URL hffs-0.10.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ea3f625c5ce611e7486ad8a14bc3303e4d1c8788eeb67750733f619342b8a2d1
BLAKE2b-256 checksum
How to use checksums
de56e3d42588552327bab3298aeaf6630da506879ef8430e0fd1b6e83d3ab906
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / hffs-0.10-py3-none-any.whl

Download URL hffs-0.10-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e24ee27d05ef0dfefa93752b7ef4c6206fb6004e624f847aa6732ba76da985a9
BLAKE2b-256 checksum
How to use checksums
60259f809e29ac7bf581be57cd1aff0f9d5e848f6c12b42b46e9830862b69ba6
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.10 This release

2 release files

0.9

2 release files

0.8

2 release files

0.7

2 release files

0.6

2 release files

0.5

2 release files

0.4

2 release files

0.3

2 release files

0.2

2 release files

0.1

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