Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
6.1.0
metadata
title: AI Text Assistant
emoji: π€
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 4.44.0
app_file: app.py
pinned: false
short_description: Generate text or summarize articles with token alternatives
π€ AI Text Assistant
An interactive web application that uses AI to generate text or summarize articles, with a unique feature that shows alternative token predictions.
Features
- Text Generation: Uses Qwen/Qwen2.5-0.5B-Instruct to continue your prompts
- Text Summarization: Uses facebook/bart-large-cnn to summarize long articles
- Token Alternatives: Hover over any generated word to see the top 5 alternatives the AI considered
- Adjustable Parameters: Control max token length for generation
- User-Friendly Interface: Simple toggle between modes with clear visual feedback
How It Works
- Choose between "Text Generation" or "Text Summarization" mode
- Enter your text (max 500 words)
- Adjust max tokens as needed
- Click "Process" to see results
- Hover over any word in the output to explore alternative tokens!
Technical Details
- Models:
- Text Generation: Qwen/Qwen2.5-0.5B-Instruct
- Text Summarization: facebook/bart-large-cnn
- Framework: Gradio + PyTorch + Transformers
- Deployment: Hugging Face Spaces
- Device: Auto-detects GPU, falls back to CPU
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference