Agent skill for using Hugging Face Transformers models from Claude/OpenClaw.
Provides easy access to 150k+ pre-trained models for:
- Text generation
- Sentiment analysis
- Named entity recognition
- Translation
- Image classification
- And more
pip install transformers torch# Generate text
python scripts/generate.py --model gpt2 --prompt "The future of AI is"
# Analyze sentiment
python scripts/sentiment.py --text "This is amazing!"
# Extract entities
python scripts/ner.py --text "Apple CEO Tim Cook announced new products."All scripts output JSON for easy integration:
import { exec } from 'openclaw';
const result = await exec('python scripts/generate.py --model gpt2 --prompt "Hello"');
const output = JSON.parse(result);
console.log(output.text);Created in response to huggingface/transformers#42971
MIT