Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,6 +56,54 @@ with st.expander("Help / About 📚", expanded=False):
|
|
| 56 |
- 🧙♂️ **Experience:** Become a graphic novel plot wizard, boost your language skills.
|
| 57 |
- 🔎 **Query Use:** Input `?q=Palindrome` or `?query=Anagram` in URL for new challenges.
|
| 58 |
''')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
|
| 60 |
# MoE Context Glossary
|
| 61 |
roleplaying_glossary = {
|
|
|
|
| 56 |
- 🧙♂️ **Experience:** Become a graphic novel plot wizard, boost your language skills.
|
| 57 |
- 🔎 **Query Use:** Input `?q=Palindrome` or `?query=Anagram` in URL for new challenges.
|
| 58 |
''')
|
| 59 |
+
|
| 60 |
+
# Aaron's Intelligent Style Guide for AI Graphic Novel Writers
|
| 61 |
+
parts_of_speech = [
|
| 62 |
+
{"type": "Noun", "description": "Person, place, thing, or idea", "example": "Hero, city, spaceship, justice"},
|
| 63 |
+
{"type": "Verb", "description": "Action or state of being", "example": "Fight, transform, is, become"},
|
| 64 |
+
{"type": "Adjective", "description": "Describes a noun", "example": "Mysterious, ancient, powerful, dark"},
|
| 65 |
+
{"type": "Adverb", "description": "Modifies verbs, adjectives, or other adverbs", "example": "Mysteriously, very, suddenly, heroically"},
|
| 66 |
+
{"type": "Conjunction", "description": "Connects clauses, sentences, or words", "example": "And, but, or, yet"},
|
| 67 |
+
{"type": "Interjection", "description": "Expresses emotion", "example": "Wow!, Ouch!, Haha!, Shhh!"},
|
| 68 |
+
{"type": "Idiom", "description": "Phrase with a figurative meaning", "example": "Break a leg, Spill the beans, Hit the road"},
|
| 69 |
+
{"type": "Symbolism", "description": "Objects, figures, or colors used to represent ideas or concepts", "example": "A rose for love, a storm for chaos"},
|
| 70 |
+
{"type": "Theme", "description": "Underlying message or main idea", "example": "The quest for identity, the battle between good and evil"},
|
| 71 |
+
{"type": "Motif", "description": "Recurring element that has symbolic significance", "example": "Repeated imagery of masks to signify identity"}
|
| 72 |
+
]
|
| 73 |
+
|
| 74 |
+
language_structures = [
|
| 75 |
+
{"type": "Glossary", "description": "Vocabulary Reference: List of terms and their definitions", "example": "Villain: The antagonist of the story"},
|
| 76 |
+
{"type": "Dialogue", "description": "Conversational Text: Characters' spoken words", "example": "We must act now! exclaimed the hero"},
|
| 77 |
+
{"type": "Narration", "description": "Storytelling Text: Text that tells the story", "example": "The city had never seen such despair"},
|
| 78 |
+
{"type": "Captions", "description": "Descriptive Text: Describes scene, setting, or action", "example": "New York, 2050. A city in turmoil"},
|
| 79 |
+
{"type": "Sound Effects", "description": "Auditory Text: Words that mimic sounds", "example": "BOOM! The spaceship landed"},
|
| 80 |
+
{"type": "Thought Bubbles", "description": "Internal Monologue Text: Characters' thoughts", "example": "I wonder if they know my secret"},
|
| 81 |
+
{"type": "Panel Transitions", "description": "Visual Storytelling Technique: Movement between scenes or ideas", "example": "Meanwhile, across the galaxy..."},
|
| 82 |
+
{"type": "Character Development", "description": "Evolution of characters throughout the story", "example": "From a timid schoolgirl to a fearless warrior"},
|
| 83 |
+
{"type": "Plot Twists", "description": "Unexpected changes in the story direction", "example": "The hero discovers their enemy is their sibling"},
|
| 84 |
+
{"type": "Backstory", "description": "Historical or background context of characters or setting", "example": "Once a celebrated hero, now a forgotten legend"}
|
| 85 |
+
]
|
| 86 |
+
|
| 87 |
+
import streamlit as st
|
| 88 |
+
|
| 89 |
+
# Assuming 'parts_of_speech' and 'language_structures' are defined as above
|
| 90 |
+
|
| 91 |
+
def display_elements(elements, title):
|
| 92 |
+
st.markdown(f"## {title}")
|
| 93 |
+
for element in elements:
|
| 94 |
+
st.markdown(f"""
|
| 95 |
+
- **Type**: {element['type']}
|
| 96 |
+
- **Description**: {element['description']}
|
| 97 |
+
- **Example**: {element['example']}
|
| 98 |
+
""")
|
| 99 |
+
|
| 100 |
+
st.title("Graphic Novel Creation Toolkit")
|
| 101 |
+
|
| 102 |
+
display_elements(parts_of_speech, "Parts of Speech for Dramatic Situations")
|
| 103 |
+
display_elements(language_structures, "Language Structures for Dramatic Situations")
|
| 104 |
+
|
| 105 |
+
|
| 106 |
+
|
| 107 |
|
| 108 |
# MoE Context Glossary
|
| 109 |
roleplaying_glossary = {
|