gradio_client

A ComfyUI’s custom node for generating images with the Flux-Dev or Flux-Schnell models directly on Hugging Face
[!IMPORTANT]
Node tested only on Linux. It should work without any problems on Windows and Mac but has not been tested on these OS.
If GIT is installed on your system, go to the custom_nodes subfolder of your ComfyUI installation, open a terminal and type:
git clone https://github.com/Franck-Demongin/NX_HuggingFace_Flux.git
If GIT is not installed, retrieve the ZIP file, unzip it into the custom nodes folder and rename it NX_HuggingFace_Flux.
IMPORTANT
Activate the Python virtual environment used by ComfyUI
from the ComfyUI installation directory:
“`bash
# Linux, Mac
source venv/bin/activate
“`
“`bash
# Windows
venv\Scripts\activate
“`
The command line must be preceded by *(venv)*, indicating that the virtual environment is active.
Install the dependencies used by the node:
pip install -r requirements.txt
Copy the *.env.example* file and rename it *.env*
Open it and enter your Hugging Face Access Token (you can create it in your Hugging Face space after creating an account).
Restart ComfyUI. *Hugging Face Flux* should be available in the *NX_Nodes* category.
Note that
Limitations
-GPU time quota allocated to each user
Due to these limitations, an error often occurs, stopping rendering.