From 196adcd822592f346d2586630a5bc3abbfaa42c7 Mon Sep 17 00:00:00 2001 From: LucipherDev Date: Thu, 9 Jan 2025 15:18:59 +0530 Subject: [PATCH] Publish --- .github/workflows/publish.yml | 24 ++++++++++++++++++++++++ README.md | 4 ++-- pyproject.toml | 14 ++++++++++++++ 3 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish.yml create mode 100644 pyproject.toml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..a8719ae --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,24 @@ +name: Publish to Comfy registry +on: + workflow_dispatch: + push: + branches: + - main + - master + paths: + - "pyproject.toml" + +jobs: + publish-node: + name: Publish Custom Node to registry + runs-on: ubuntu-latest + # if this is a forked repository. Skipping the workflow. + if: github.event.repository.fork == false + steps: + - name: Check out code + uses: actions/checkout@v4 + - name: Publish Custom Node + uses: Comfy-Org/publish-node-action@main + with: + ## Add your own personal access token to your Github Repository secrets and reference it here. + personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }} diff --git a/README.md b/README.md index 9d1fc4e..7dba36c 100644 --- a/README.md +++ b/README.md @@ -31,13 +31,13 @@ python install.py **If you installed from the ComfyUI-Manager, all the necessary models should be automatically downloaded into the `models/tangoflux` and `models/text_encoders` folders.** -**Otherwise they will be automatically downloaded when the LoadAniDoc node is used for the first time.** +**Otherwise they will be automatically downloaded when the TangoFluxLoader node is used for the first time.** **Manual Download:** - Download TangoFlux from [here](https://huggingface.co/declare-lab/TangoFlux/tree/main) and put everything in `models/tangoflux` (make sure to include the config files) - Download text encoders from [here](https://huggingface.co/google/flan-t5-large/tree/main) and put everything in `models/text_encoders/google-flan-t5-large` (make sure to include the config files) -The nodes can be found in "TangoFlux" category as `TangoFluxDocLoader`, `TangoFluxSampler`, `TangoFluxVAEDecodeAndPlay`. +The nodes can be found in "TangoFlux" category as `TangoFluxLoader`, `TangoFluxSampler`, `TangoFluxVAEDecodeAndPlay`. ## Citation diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..5c98780 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,14 @@ +[project] +name = "comfyui-tangoflux" +description = "ComfyUI Custom Nodes for 'TangoFlux: Super Fast and Faithful Text to Audio Generation with Flow Matching'. This generates high-quality 44.1kHz audio up to 30 seconds using just a text prompt." +version = "1.0.0" +license = {file = "LICENSE"} +dependencies = ["torch", "torchaudio", "transformers", "diffusers", "accelerate", "tqdm"] + +[project.urls] +Repository = "https://github.com/LucipherDev/ComfyUI-TangoFlux" +# Used by Comfy Registry https://comfyregistry.org + +[tool.comfy] +PublisherId = "lucipherdev" +DisplayName = "ComfyUI-TangoFlux" \ No newline at end of file