From c731f8a4066c5f37fcb3d36f8625d2fa6922e237 Mon Sep 17 00:00:00 2001 From: Mogbeyi Date: Tue, 28 Oct 2025 22:56:54 +0100 Subject: [PATCH] Create README file --- week4/community-contributions/emmy/README.md | 41 ++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 week4/community-contributions/emmy/README.md diff --git a/week4/community-contributions/emmy/README.md b/week4/community-contributions/emmy/README.md new file mode 100644 index 0000000..61a1aae --- /dev/null +++ b/week4/community-contributions/emmy/README.md @@ -0,0 +1,41 @@ +# 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 + +1. Install dependencies: +```bash +pip install gradio openai python-dotenv +``` + +2. Create a `.env` file: +``` +OPENAI_API_KEY=your_openai_key_here +GOOGLE_API_KEY=your_google_key_here +``` + +3. Run the app: +```bash +python text_to_html.py +``` + +4. Open the link in your browser + +## Usage + +1. Paste your text in the input box +2. Choose a model (GPT-4o-mini or Gemini-Flash) +3. Select a style theme +4. Click "Generate Page" +5. Copy the HTML and save as `index.html` \ No newline at end of file