A small collection of personal generative AI projects I've been experimenting with. These are early-stage ideas that explore the creative and evaluative potential of LLMs across storytelling and music. Built mostly for fun and learning!
Generate a personalized bedtime story for kids using OpenAIโs GPT model, then have it scored by an AI judge based on how simple, engaging, and meaningful it is.
- ๐จ Choose a story tone, characters, and moral lesson
- โ๏ธ Story is generated using GPT-3.5-turbo
- ๐ง AI Judge scores the story on 4 criteria:
- Simplicity & age-appropriateness
- Engagement & creativity
- Strength of the moral
- Language clarity
- ๐ Modular prompt builder with few-shot examples
[User Input]
โ
[Prompt Builder (style + moral + characters)]
โ
[Story Generator (LLM)]
โ
[Story Output]
โ
[Judge (LLM Scoring)]
โ
[Score + Feedback]
- Style: silly
- Characters: Cinderella, a carrot named John, Ronnie the raccoon
- Moral: creativity
- Prompt: the characters have a dance party in the forest
Here's your story, little one! โจ
...
Total Score: 17/20
What the story did well: Fun characters and imaginative plot!
What could be improved: Moral could be made clearer.
pip install openai==0.28
Uses Cohere's LLM + Spotify API to generate a custom playlist based on a mood, genre, and your favorite artists/songs โ with real-time Spotify validation and automatic replacements for made-up entries.
- ๐ฌ LLM generates playlist based on mood, genre, and inspiration
- ๐ Verifies that all songs exist on Spotify
- ๐ Replaces fake/missing songs with similar real songs
- ๐ Output is a clean list like
"Song Title" by Artist
- Mood: dreamy
- Genre: pop
- Artists: Taylor Swift, Sabrina Carpenter, Tate McRae
- Songs: "very first night" by Taylor Swift, "love me harder" by Ariana Grande
Playlist complete ๐ถ. 15 songs verified on Spotify.
"Sunflower" by Harry Styles
"Eyes Closed" by Halsey
...
pip install cohere
pip install spotipy
๐ API Keys Required This project uses external APIs (OpenAI, Cohere, Spotify), which require API keys. For security, keys are not included.
If you're running this in Google Colab, you can simply add your API keys manually using:
# ๐ Add your API key below
openai.api_key = "your-key-here"
Or better:
import getpass
openai.api_key = getpass.getpass("Enter your OpenAI API key: ")
Replace similar lines for Cohere and Spotify if needed.
Feel free to fork, build on top, or just explore the ideas ๐ก