AI Poem Crafter is a creative web app that generates beautiful poems using the AwanLLM API! 🎤🎶 Whether you're in the mood for a happy, sad, or nostalgic poem, this app allows you to customize the mood, length, and even theme to create a unique piece of art. 🌟
- Generate Poems: Select a mood, length, and theme (optional) to generate a personalized poem. 🖋️
- Poem History: Keep track of all your generated poems with titles, moods, and content. 📜
- Download Poems: Download your poems as text files with the title as the filename. 💾
- Copy to Clipboard: Easily copy any poem to your clipboard for sharing. 📋
- Clear History: Reset your poem history with a single click. 🧹
-
Choose Your Poem Settings:
- Select a mood (e.g., Happy, Sad, Romantic, etc.)
- Choose your poem length (Short, Medium, or Long).
- Optionally, enter a theme or keywords.
-
Generate Your Poem: 📝
- Click the "Generate Poem" button and wait as the AI crafts your masterpiece! ✨
-
Poem History: 🏛️
- View all the poems you've created, with the option to expand them for full reading.
-
Download or Copy: 🔽
- Download poems as
.txt
files or copy them directly to your clipboard for easy sharing.
- Download poems as
-
Clear History: 🧹
- Use the "Clear Poem History" button to reset all your poem data.
- Python 3.7+ 🐍
- Streamlit 📊
- Requests 🔌
- Pyperclip 📋
-
Clone the repository:
git clone https://github.com/eternalflame02/AI-Poem-Crafter.git
-
Install dependencies:
pip install -r requirements.txt
-
Run the app locally:
streamlit run poemcrafter.py
- Sign in to your Streamlit account here.
- Go to your dashboard and click "New app".
- Connect your GitHub repository and deploy the app.
- Set your API_KEY as a secret in Streamlit Cloud:
- In Streamlit Cloud, navigate to Settings > Secrets and add your API_KEY.
- Example:
[secrets] API_KEY = "your-api-key-here"
I welcome contributions! Feel free to fork the repo, create branches, and submit pull requests.
This project is licensed under the MIT License. See the LICENSE file for details. 📄
Thanks for checking out AI Poem Crafter! 🌟