A Python-based tool that enhances text prompts using advanced AI language models. This tool provides multiple token length options and features an interactive console interface with real-time visual feedback.
-
Multiple Token Length Options:
- 64 tokens: Ultra Concise (mid-sentence cutoff)
- 128 tokens: Brief & Clear
- 256 tokens: Balanced & Rich
- 512 tokens: Detailed & Full
-
Interactive Console Interface:
- Beautiful ASCII/Emoji hybrid display
- Real-time typing effects
- Progress indicators
- Error handling
- Cross-platform compatibility
-
Smart Text Processing:
- AI-powered text enhancement
- Configurable output lengths
- Maintains context and coherence
- Special handling for ultra-concise mode
- Python 3.8 or higher
- pip package manager
- Clone this repository or download the files
- Install the required packages:
pip install -r requirements.txt
Run the script from your terminal:
python prompt.py
Follow the interactive prompts:
- Enter your text prompt
- Choose desired token length (1-4)
- Wait for AI enhancement
- View the enhanced result
- Uses Hugging Face Transformers library
- Model: gokaygokay/Flux-Prompt-Enhance
- Supports both emoji and ASCII display modes
- Automatic terminal capability detection
- UTF-8 encoding support
The script automatically:
- Detects terminal emoji support
- Configures appropriate display mode
- Suppresses unnecessary warnings
- Handles cross-platform encoding
Feel free to:
- Report bugs
- Suggest features
- Submit pull requests
This project is open source and available under the MIT License.
- Hugging Face for the Transformers library
- Flux-Prompt-Enhance model creators