Hugging Face
Interactive
Text Generation
Generate text continuations using GPT-2, a transformer-based language model. Watch the model predict tokens in real-time.
Transformers.js Demo
Run ML models directly in your browser
idle
Analyze sentiment of English text
Output
Results will appear here after running inference
How This Works
This demo uses Transformers.js to run machine learning models directly in your browser using WebAssembly. No data is sent to any server—all inference happens locally on your device.