DEV 挑戰第 4 週萬聖節主題:GhostWriter 怪談生成器
**WEEK 4 DEV CHALLENGE - HALLOWEEN THEME - GHOST STORY GENERATOR:)**
參加者為 Hacktoberfest 開源 AI 挑戰第 4 週製作 GhostWriter,讓用戶輸入故事構想、選擇角色、地點和氛圍,生成超自然故事。網站以 Gemma 開放權重模型生成故事,並使用 Python 和 Flask 開發後端。
👻 GhostWriter — Stories from Beyond the Machine
This is a submission for the Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine.
🕯️ What I Built
GhostWriter is an AI-powered supernatural storytelling website inspired by the idea that technology might have secrets of its own.
What if an abandoned computer could tell a story? What if an AI discovered a message hidden inside forgotten code? What if a digital ghost was waiting for someone to listen?
GhostWriter brings these ideas to life by allowing users to create their own spooky stories.
Users can provide a story idea, choose characters and locations, select a mood, and generate supernatural tales featuring haunted computers, mysterious algorithms, digital spirits and self-aware machines.
I interpreted the Ghost in the Machine theme as a meeting point between artificial intelligence, imagination and the mysteries of technology.
My goal was to create something fun and creative while exploring how open-weight AI can be used to build an interactive storytelling experience.
🚀 Demo
🌐 Live Website: https://ghostwriter-gemma-horror.onrender.com
Explore the world of GhostWriter and discover the stories hiding inside the machine!
💻 Code
🔗 **GitHub Repository:https://github.com/nishchithadev/Ghost_StoryWriter
The repository includes the application source code, setup instructions and deployment configuration.
Contributions, suggestions and feedback are welcome!
🛠️ How I Built It
I built GhostWriter with a focus on simplicity, accessibility and genuine AI-powered storytelling.
Technologies used:
- Python and Flask: Backend application and API integration.
- HTML, CSS and JavaScript: Frontend and interactive user experience.
- Gemma: The open-weight AI model used for story generation.
- GitHub: Source code management and open-source collaboration.
- Render: Application hosting and deployment.
The intended workflow is simple:
- The user enters a story idea and selects their preferences.
- The Flask backend prepares the storytelling prompt.
- The prompt is sent to the Gemma model through a compatible inference provider.
- Gemma generates a story based on the user's inputs.
- The application displays the generated story.
My aim is to make Gemma the core of the storytelling experience rather than simply adding an AI label to a conventional website.
🌍 Why Does Open Innovation Matter?
Open innovation makes AI experimentation more accessible to students, independent developers and people who are just beginning their software development journey.
Open-weight models such as Gemma give developers opportunities to explore model behavior, experiment with prompts and build applications around their own ideas.
For GhostWriter, this means exploring how AI can support creativity and interactive storytelling without treating the model as a mysterious black box.
It also creates opportunities to learn about model integration, backend development, responsible API usage and open-source collaboration.
I built this project to learn by creating something tangible—and to explore how open AI technologies can turn an imaginative idea into a working application.
🏆 Prize Categories
- Best Use of Gemma: For integrating the Gemma open-weight model into an interactive AI storytelling application.
Thank you to the Hacktoberfest community for creating opportunities to experiment, learn and build with open-source AI!
What would you ask a ghost living inside a machine? 👻
來源:DEV Community · dev.to