GhostWriter AI: Bringing Stories to Life with Local Open-Source AI
๐ป GhostWriter AI: Bringing Stories to Life with Local Open-Source AI This is my submission for the Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine . What I Built For this week's Hacktoberfest challenge, I explored an idea that combines Halloween, storytelling, and open-source artificial intelligence: GhostWriter AI โ a local AI-powered horror story generator. The idea isโฆ
GhostWriter AI: Bringing Stories to Life with Local Open-Source AI
The Hacktoberfest Open-Source AI Challenge Week 4 invites participants to create projects combining Halloween, storytelling, and artificial intelligence. One such project is GhostWriter AI, a locally-run horror story generator designed to provide privacy and accessibility while exploring open-source AI capabilities.
To build the application, the project utilizes a simple Python-based architecture with local AI inference. The primary components include Python for application logic, Ollama for running AI models locally, Qwen2.5 as an open-weight language model for generating creative text, and Streamlit for a user-friendly interface.
The user experience begins with entering a story idea and selecting a preferred atmosphere. Python combines the input with a storytelling prompt, which is then sent to the locally-running language model via Ollama. The model generates a unique horror story based on the provided information, which the Streamlit interface displays for the user.
Privacy is a key aspect of this project, as running the AI locally ensures that prompts remain on the user's machine. This is particularly valuable for personal writing or experimental projects where confidentiality is important. Additionally, the application can function without an internet connection once the local environment is set up, making it suitable for areas with limited connectivity.
Open innovation is a central theme of the project, as it allows developers to experiment with different models, adjust prompts, and customize the application to their needs. This flexibility also lowers dependence on paid APIs, making it more accessible for hobby projects and learning experiments.
Technically, the project focuses on running an open-weight language model locally, integrating AI inference into a Python application, designing prompts for creative text generation, and building an interface for an AI-powered tool. Understanding the trade-offs between local inference and hosted AI APIs is also an important aspect of the project.
Looking forward, the project can be improved in several ways, such as adding multiple horror styles, adjustable story lengths, a library for saving and revisiting stories, text-to-speech narration, and a fully offline mode. These features represent possible future improvements rather than features that are currently implemented.
The Hacktoberfest Open-Source AI Challenge Week 4 provides a valuable opportunity for developers to explore open-source AI technology, learn new skills, and experiment with innovative applications. The project demonstrates that AI does not need to be complex or reliant on expensive APIs to be meaningful and engaging.
Written by urgent.news from Dev.to's reporting โ not their text. Machine-written โ may contain errors; check the original before relying on it.