DEV Community

Muhammad Abdullah
Muhammad Abdullah

Posted on

Spookify: The Ghost Story Generator

Welcome to my submission for Week 4 of the Hacktoberfest Open-Source AI Challenge! The theme this week is "Ghost in the Machine," which perfectly aligns with the spooky season.

The Inspiration
For Halloween, I wanted a fun way to bring a little spookiness into everyday life. The challenge prompt mentioned building a ghost story generator, so I decided to build a tool that takes the most boring, mundane parts of your day and turns them into terrifying tales.

The Solution: Spookify
I built Spookify, a lightweight web application that takes a short input like "I was just sitting in my room playing Tekken Tag Tournament" and uses Llama 3 to instantly generate a creepy, two-paragraph horror story based on that exact action. It completely transforms your normal day into a nightmare!

How I Built It
I built this on my Ubuntu setup using the following stack:

UI Framework: Gradio to create a fast, clean web interface.

AI Engine: The open-weight Llama 3 model (llama3-8b-8192).

Inference: I used the Groq API to get lightning-fast text generation without needing to download massive model weights directly to my local machine.

Why Open Innovation Matters
Using an open-weight model like Llama 3 is crucial for creative projects like this. When we rely on open models, we are not locked into restrictive corporate ecosystems that might censor or limit creative storytelling. Furthermore, by accessing open innovation via lightweight APIs, developers can build fun, highly responsive tools on everyday laptops without needing thousands of dollars in GPU hardware. Open source ensures that AI remains accessible for everyone's creative ideas, even the spooky ones!

Here is the interface in action!

You can check out the full code in my GitHub repository here:https://github.com/AbdullahRaoDev/Spookify.git

Top comments (0)