Skip to content

Agent skill for using Hugging Face Transformers from Claude/OpenClaw

Notifications You must be signed in to change notification settings

kaigritun/huggingface-transformers-skill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Hugging Face Transformers Skill

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

Installation

pip install transformers torch

Quick Start

# 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."

Usage with Agents

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);

Contributing

Created in response to huggingface/transformers#42971

License

MIT

About

Agent skill for using Hugging Face Transformers from Claude/OpenClaw

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages