859 B
859 B
PrettyPage Generator
Transform any text into a beautiful, responsive webpage.
What it does
Paste your text (notes, articles, documentation, etc.) and get a styled, single-page website using your exact words. Choose from different themes like Minimal, Professional, Colorful, or Modern Gradient.
Requirements
- Python 3.8+
- OpenAI API key
- Google API key (optional, for Gemini)
Setup
- Install dependencies:
pip install gradio openai python-dotenv
- Create a
.envfile:
OPENAI_API_KEY=your_openai_key_here
GOOGLE_API_KEY=your_google_key_here
- Run the app:
python text_to_html.py
- Open the link in your browser
Usage
- Paste your text in the input box
- Choose a model (GPT-4o-mini or Gemini-Flash)
- Select a style theme
- Click "Generate Page"
- Copy the HTML and save as
index.html