Skip to content

nthiagar/GenAI-Projects

Repository files navigation

๐Ÿค– GenAI Projects

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!


๐Ÿงธ Bedtime Story Generator with LLM Judge

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.

๐Ÿ› ๏ธ Features

  • ๐ŸŽจ 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

๐Ÿงฉ How it Works


[User Input]
โ†“
[Prompt Builder (style + moral + characters)]
โ†“
[Story Generator (LLM)]
โ†“
[Story Output]
โ†“
[Judge (LLM Scoring)]
โ†“
[Score + Feedback]

โ–ถ๏ธ Example Input

  • Style: silly
  • Characters: Cinderella, a carrot named John, Ronnie the raccoon
  • Moral: creativity
  • Prompt: the characters have a dance party in the forest

๐Ÿ’ฌ Example Output


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.

โš™๏ธ Requirements

pip install openai==0.28

๐ŸŽต AI-Curated Spotify Playlist Generator

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.

๐Ÿ› ๏ธ Features

  • ๐Ÿ’ฌ 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

โ–ถ๏ธ Sample Input

  • Mood: dreamy
  • Genre: pop
  • Artists: Taylor Swift, Sabrina Carpenter, Tate McRae
  • Songs: "very first night" by Taylor Swift, "love me harder" by Ariana Grande

๐Ÿ’ฌ Sample Output

Playlist complete ๐ŸŽถ. 15 songs verified on Spotify.

"Sunflower" by Harry Styles  
"Eyes Closed" by Halsey  
...  

โš™๏ธ Requirements

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. โš ๏ธ Do not upload your keys to GitHub or Google Drive.

Feel free to fork, build on top, or just explore the ideas ๐Ÿ’ก

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published