Masal Yaratıcı: Karakter ve Ortam Seçimi

Test this app for free
11
import logging
import os

from flask import Flask, render_template, session, request, jsonify
from flask_session import Session
from gunicorn.app.base import BaseApplication
from abilities import apply_sqlite_migrations, llm, upload_file_to_storage, url_for_uploaded_file

from app_init import create_initialized_flask_app
from models import db

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)

# Flask app creation should be done by create_initialized_flask_app to avoid circular dependency problems.
app = create_initialized_flask_app()

# Configuring server-side session
app.config["SESSION_PERMANENT"] = False
app.config["SESSION_TYPE"] = "filesystem"
Session(app)

@app.route("/")
def root_route():
Get full code

Created: | Last Updated:

AI-powered story generator allowing users to select 5 cute characters and 5 different environments to create personalized fairy tales.

Here's a how-to guide for the Story Generator template:

Introduction

The Story Generator template creates an interactive web application that allows users to generate personalized children's stories. Users can select up to three characters from five cute animal options and choose one environment setting to create unique stories.

Getting Started

  • Click "Start with this Template" to begin using the Story Generator template in your Lazy Builder interface

Test the Application

  • Click the "Test" button in your Lazy Builder interface
  • Lazy will deploy the application and provide you with a dedicated server link to access the web interface

Using the Story Generator

  • When you access the provided link, you'll see the Story Generator interface with character selection cards
  • Select up to three characters by clicking on their cards:
  • Happy Bunny
  • Friendly Bear
  • Little Fox
  • Wise Owl
  • Playful Kitten
  • Click "Next" after selecting your characters
  • Choose one environment from the available options:
  • Forest
  • Park
  • School
  • Beach
  • Farm
  • Click "Next" to generate your story
  • The application will display a unique children's story featuring your selected characters in the chosen environment
  • Use the "Restart" button to create a new story with different characters and environment

The Story Generator creates a standalone web application that doesn't require any additional integration steps or external services. Simply access the provided link to start creating personalized children's stories.



Template Benefits

  1. Educational Engagement Tool
  2. Perfect for schools and educational institutions
  3. Helps develop children's creativity and imagination
  4. Supports bilingual learning with dual-language interface (Turkish/English)
  5. Creates interactive storytelling experiences for classroom activities

  6. Content Creation Platform

  7. Enables rapid generation of unique children's stories
  8. Valuable for publishers and content creators
  9. Produces customizable content for children's books
  10. Streamlines the storytelling process for professional writers

  11. Therapeutic Application

  12. Useful in child psychology and counseling sessions
  13. Helps children express emotions through character selection
  14. Supports narrative therapy techniques
  15. Creates safe spaces for emotional exploration

  16. Brand Marketing Tool

  17. Adaptable for branded content creation
  18. Enables companies to create engaging marketing materials for children
  19. Supports product storytelling and brand narrative
  20. Creates memorable customer experiences through interactive storytelling

  21. Digital Entertainment Solution

  22. Provides engaging content for children's entertainment apps
  23. Creates recurring user engagement through story variety
  24. Offers monetization opportunities through premium characters/environments
  25. Supports multi-platform deployment for various digital channels

Technologies

Flask Templates from Lazy AI – Boost Web App Development with Bootstrap, HTML, and Free Python Flask Flask Templates from Lazy AI – Boost Web App Development with Bootstrap, HTML, and Free Python Flask
Streamline JavaScript Workflows with Lazy AI: Automate Development, Debugging, API Integration and More  Streamline JavaScript Workflows with Lazy AI: Automate Development, Debugging, API Integration and More
Python App Templates for Scraping, Machine Learning, Data Science and More Python App Templates for Scraping, Machine Learning, Data Science and More
Optimize SQL Workflows with Lazy AI: Automate Queries, Reports, Database Management and More Optimize SQL Workflows with Lazy AI: Automate Queries, Reports, Database Management and More

Similar templates

Open Source LLM based Web Chat Interface

This app will be a web interface that allows the user to send prompts to open source LLMs. It requires to enter the openrouter API key for it to work. This api key is free to get on openrouter.ai and there are a bunch of free opensource models on openrouter.ai so you can make a free chatbot. The user will be able to choose from a list of models and have a conversation with the chosen model. The conversation history will be displayed in chronological order, with the oldest message on top and the newest message below. The app will indicate who said each message in the conversation. The app will show a loader and block the send button while waiting for the model's response. The chat bar will be displayed as a sticky bar at the bottom of the page, with 10 pixels of padding below it. The input field will be 3 times wider than the default size, but it will not exceed the width of the page. The send button will be on the right side of the input field and will always fit on the page. The user will be able to press enter to send the message in addition to pressing the send button. The send button will have padding on the right side to match the left side. The message will be cleared from the input bar after pressing send. The last message will now be displayed above the sticky input block, and the conversation div will have a height of 80% to leave space for the model selection and input fields. There will be some space between the messages, and the user messages will be colored in green while the model messages will be colored in grey. The input will be blocked when waiting for the model's response, and a spinner will be displayed on the send button during this time.

Icon 1 Icon 1
516

We found some blogs you might like...