This is a base template for creating task and flow modules. You can check out other examples of task and flow modules (and request to join the organization!) at https://huggingface.co/NapthaAI.
From the official poetry docs:
curl -sSL https://install.python-poetry.org | python3 -
export PATH="/home/$(whoami)/.local/bin:$PATH"
Clone the repo using:
git clone https://huggingface.co/NapthaAI/template
cd template
You can install the module using:
poetry install
Don't forget to change the name of the module.
Before deploying to a Naptha node, you should iterate on improvements with the module locally. You can run the module using:
poetry run python <module_name>/run.py
When ready, let's push to your own HuggingFace or the Naptha org. Add a version number using:
git tag v0.1
You'll need to generate an SSH key on HF and add it to your account. Then you'll be able to update your Git repository using:
git remote set-url origin [email protected]:NapthaAI/<module_name>
More details in the HF docs
git push --tags