Instructions to use alfiinyang/txt2xl_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use alfiinyang/txt2xl_classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="alfiinyang/txt2xl_classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("alfiinyang/txt2xl_classifier") model = AutoModelForSequenceClassification.from_pretrained("alfiinyang/txt2xl_classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download setup.py from alfiinyang/txt2xl_classifier: direct link, hf CLI and curl.
- Browser
- Download file 517 Bytes
-
https://huggingface.co/alfiinyang/txt2xl_classifier/resolve/main/setup.py
- Command line
-
hf download hf://alfiinyang/txt2xl_classifier/setup.py
-
curl -L -o setup.py https://huggingface.co/alfiinyang/txt2xl_classifier/resolve/main/setup.py
517 Bytes
| from setuptools import setup, find_packages | |
| setup( | |
| name="txt2xl", | |
| version="0.1.2", | |
| description="Text classification Python functions for txt2xl", | |
| author="alfiinyang", | |
| author_email="alfiinyang@gmail.com", | |
| packages=find_packages(include=['classifier_code']), | |
| package_dir={'': 'classifier_code'}, | |
| install_requires=[ | |
| "transformers==4.44.2", | |
| "torch==2.4.1+cu121", | |
| "pandas==2.1.4", | |
| "requests==2.32.3", | |
| ], | |
| python_requires='>=3.6', | |
| ) | |