Masal Yaratıcı: Karakter ve Ortam Seçimi
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():
Created: | Last Updated:
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
- Educational Engagement Tool
- Perfect for schools and educational institutions
- Helps develop children's creativity and imagination
- Supports bilingual learning with dual-language interface (Turkish/English)
-
Creates interactive storytelling experiences for classroom activities
-
Content Creation Platform
- Enables rapid generation of unique children's stories
- Valuable for publishers and content creators
- Produces customizable content for children's books
-
Streamlines the storytelling process for professional writers
-
Therapeutic Application
- Useful in child psychology and counseling sessions
- Helps children express emotions through character selection
- Supports narrative therapy techniques
-
Creates safe spaces for emotional exploration
-
Brand Marketing Tool
- Adaptable for branded content creation
- Enables companies to create engaging marketing materials for children
- Supports product storytelling and brand narrative
-
Creates memorable customer experiences through interactive storytelling
-
Digital Entertainment Solution
- Provides engaging content for children's entertainment apps
- Creates recurring user engagement through story variety
- Offers monetization opportunities through premium characters/environments
- Supports multi-platform deployment for various digital channels
Technologies



