import streamlit as st st.markdown(""" | Story | Outline | |-------|---------| | The Celestial Gatekeepers â˜„ī¸đŸŒŸđŸ›Ąī¸ | | | The Children of the Forgotten Gods ⚡🐉đŸē | | | The Time Weaver Chronicles âŗđŸ§™â€â™‚ī¸đŸ•°ī¸ | | | The Enchanted Forest Trilogy 🌲đŸĻ„✨ | | | The Cursed Kingdom 🏰đŸ‘ģ🔮 | | """) import streamlit as st import random import json import graphviz as gv stories = [ { "title": "The Celestial Gatekeepers â˜„ī¸đŸŒŸđŸ›Ąī¸", "outline": [ "🌌 Stella, the starry-eyed guardian, and her celestial companions are tasked with protecting the universe from cosmic threats.", "😇đŸ‘ŋ As the team battles otherworldly foes, they must also confront their own inner demons and navigate the complex relationships within their ranks.", "âš”ī¸đŸŒ‘ The Gatekeepers face a powerful and ancient force of darkness, ultimately triumphing and strengthening their bonds as a team." ] }, { "title": "The Children of the Forgotten Gods ⚡🐉đŸē", "outline": [ "đŸē In a world where the old gods have been forgotten, Theo the Thunder-Caller, Dara the Dragon-Tamer, and their band of misfits are chosen by fate to restore the legacy of the ancient deities.", "đŸ§—â€â™‚ī¸đŸŒŠī¸ The group embarks on a series of perilous adventures, unearthing long-lost relics and rediscovering the powers of the gods.", "âš”ī¸đŸŒ‘ They prevent the rise of a new dark power, restoring the gods' rightful place in the world and transforming it for the better." ] }, { "title": "The Time Weaver Chronicles âŗđŸ§™â€â™‚ī¸đŸ•°ī¸", "outline": [ "đŸ•°ī¸ Tim the Time-Weaver, a sorcerer with the ability to travel through time, sets out on a mission to prevent a catastrophic event from occurring.", "⌛🌀 As Tim unravels the mysteries of the past, present, and future, he encounters new friends, formidable enemies, and unexpected challenges.", "đŸ§™â€â™‚ī¸đŸ” Tim ultimately averts the disaster, learning valuable lessons about the nature of time and the importance of living in the moment." ] }, { "title": "The Enchanted Forest Trilogy 🌲đŸĻ„✨", "outline": [ "đŸŒŗđŸĻ‹ In the hidden magical kingdom of the Enchanted Forest, a brave young elf named Elara must gather her friends to save their home from an evil sorceress.", "🍂🌈 As the group faces trials and tribulations, they discover the true power of friendship and the strength within themselves.", "âš”ī¸đŸ”Ž Elara and her friends defeat the sorceress, restoring peace and harmony to the Enchanted Forest and its magical creatures." ] }, { "title": "The Cursed Kingdom 🏰đŸ‘ģ🔮", "outline": [ "🌑🌲 In a once-prosperous realm now plagued by dark forces, a group of heroes led by the courageous knight Sir Rowan sets out to break the curse and restore the light.", "đŸŒŠī¸đŸ‘ģ As the heroes face daunting challenges and supernatural enemies, they uncover the hidden history of their kingdom and the true nature of the curse.", "🏰💡 The group defeats the source of the darkness, lifting the curse and bringing hope and prosperity back to the kingdom." ] } ] def generate_graph(story): g = gv.Digraph() for i, part in enumerate(story["outline"]): emojis = "".join(c for c in part if c in emoji.UNICODE_EMOJI_ENGLISH) g.node(str(i), label=emojis) if i > 0: g.edge(str(i - 1), str(i)) return g