|
Download README.md from AI4EPS/PhaseNet: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/AI4EPS/PhaseNet/resolve/main/README.md
- Command line
-
hf download hf://AI4EPS/PhaseNet/README.md
-
curl -L -o README.md https://huggingface.co/AI4EPS/PhaseNet/resolve/main/README.md
1.06 kB
metadata
tags:
- text-classification
library_name: generic
Text Classification repository template
This is a template repository for Text Classification to support generic inference with Hugging Face Hub generic Inference API. There are two required steps:
- Specify the requirements by defining a
requirements.txtfile. - Implement the
pipeline.py__init__and__call__methods. These methods are called by the Inference API. The__init__method should load the model and preload all the elements needed for inference (model, processors, tokenizers, etc.). This is only called once. The__call__method performs the actual inference. Make sure to follow the same input/output specifications defined in the template for the pipeline to work.
How to start
First create a repo in https://hf.co/new. Then clone this template and push it to your repo.
git clone https://huggingface.co/templates/text-classification
cd text-classification
git remote set-url origin https://huggingface.co/$YOUR_USER/$YOUR_REPO_NAME
git push --force