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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# V1:
|
| 2 |
+
|
| 3 |
+
```python
|
| 4 |
+
import streamlit as st
|
| 5 |
+
|
| 6 |
+
def main():
|
| 7 |
+
st.set_page_config(page_title="Storytelling Mastery", page_icon="π", layout="wide")
|
| 8 |
+
|
| 9 |
+
st.title("π The Art of Storytelling: Master Guide π")
|
| 10 |
+
|
| 11 |
+
# Define the storytelling points data structure
|
| 12 |
+
storytelling_points = [
|
| 13 |
+
{"number": 1, "emoji": "π ", "keyword": "location", "description": "Start by establishing a clear location to help listeners visualize the scene."},
|
| 14 |
+
{"number": 2, "emoji": "π", "keyword": "actions", "description": "Describe specific actions to create momentum and pull listeners into the moment."},
|
| 15 |
+
{"number": 3, "emoji": "π§ ", "keyword": "thoughts", "description": "Share raw, unfiltered thoughts instead of sanitized summaries to add authenticity."},
|
| 16 |
+
{"number": 4, "emoji": "π²", "keyword": "emotions", "description": "Show rather than tell your emotions through physical descriptions of feelings."},
|
| 17 |
+
{"number": 5, "emoji": "π¬", "keyword": "dialogue", "description": "Use exact dialogue to bring characters to life instead of summarizing conversations."},
|
| 18 |
+
{"number": 6, "emoji": "π", "keyword": "zoom", "description": "Zoom into specific moments rather than giving bird's-eye summaries of events."},
|
| 19 |
+
{"number": 7, "emoji": "π¬", "keyword": "transport", "description": "Transport your audience into the trenches of your story's crucial moments."},
|
| 20 |
+
{"number": 8, "emoji": "ποΈ", "keyword": "detail", "description": "Avoid excessive detail in setting descriptionsβlisteners will fill in their own versions."},
|
| 21 |
+
{"number": 9, "emoji": "β©", "keyword": "momentum", "description": "Create forward momentum by stating actions that move the story along."},
|
| 22 |
+
{"number": 10, "emoji": "ποΈ", "keyword": "visual", "description": "Make your stories visual by showing emotions through physical manifestations."},
|
| 23 |
+
{"number": 11, "emoji": "π", "keyword": "listen", "description": "Listen to great storytellers like John Krasinski to learn effective techniques."},
|
| 24 |
+
{"number": 12, "emoji": "π£οΈ", "keyword": "juicy", "description": "Keep dialogue juicy and conversational rather than formal or stilted."},
|
| 25 |
+
{"number": 13, "emoji": "π€Έ", "keyword": "simplify", "description": "Simplify your storytelling approachβit doesn't need to be complicated."},
|
| 26 |
+
{"number": 14, "emoji": "π§©", "keyword": "essentials", "description": "Focus on the essentials that make stories compelling rather than unnecessary details."},
|
| 27 |
+
{"number": 15, "emoji": "πΆ", "keyword": "walk", "description": "Walk listeners through your experience step by step rather than jumping around."},
|
| 28 |
+
{"number": 16, "emoji": "π", "keyword": "journey", "description": "Create an emotional journey that takes listeners through various feelings."},
|
| 29 |
+
{"number": 17, "emoji": "π―", "keyword": "focused", "description": "Stay focused on the core elements that drive your narrative forward."},
|
| 30 |
+
{"number": 18, "emoji": "π€", "keyword": "neurotic", "description": "Share neurotic thoughts that reveal your humanity and create connection."},
|
| 31 |
+
{"number": 19, "emoji": "β‘", "keyword": "crucial", "description": "Capture those crucial moments that define the heart of your story."},
|
| 32 |
+
{"number": 20, "emoji": "π§ ", "keyword": "master", "description": "Master these five key elements: location, action, thoughts, emotions, and dialogue."}
|
| 33 |
+
]
|
| 34 |
+
|
| 35 |
+
# Define the quotes
|
| 36 |
+
quotes = [
|
| 37 |
+
{"text": "Stories are a communal currency of humanity.", "author": "Tahir Shah, in Arabian Nights"},
|
| 38 |
+
{"text": "The universe is made of stories, not of atoms.", "author": "Muriel Rukeyser"},
|
| 39 |
+
{"text": "There is no greater agony than bearing an untold story inside you.", "author": "Maya Angelou"}
|
| 40 |
+
]
|
| 41 |
+
|
| 42 |
+
# Create the outline
|
| 43 |
+
st.markdown("## π The Art of Storytelling: 20 Essential Techniques π")
|
| 44 |
+
st.markdown(f"> \"{quotes[0]['text']}\" β {quotes[0]['author']}")
|
| 45 |
+
|
| 46 |
+
for point in storytelling_points:
|
| 47 |
+
st.markdown(f"{point['number']}. {point['emoji']} Start by establishing a clear **{point['keyword']}** to help listeners visualize the scene.")
|
| 48 |
+
|
| 49 |
+
st.markdown(f"> \"{quotes[1]['text']}\" β {quotes[1]['author']}")
|
| 50 |
+
|
| 51 |
+
# Create tabs for different visualizations
|
| 52 |
+
tab1, tab2, tab3 = st.tabs(["Vertical Flow", "Circular Layout", "Categorical Groups"])
|
| 53 |
+
|
| 54 |
+
with tab1:
|
| 55 |
+
st.markdown("### Vertical Flow Diagram")
|
| 56 |
+
mermaid_vertical = generate_vertical_diagram(storytelling_points)
|
| 57 |
+
st.markdown(mermaid_vertical, unsafe_allow_html=True)
|
| 58 |
+
|
| 59 |
+
with tab2:
|
| 60 |
+
st.markdown("### Circular Storytelling Process")
|
| 61 |
+
mermaid_circular = generate_circular_diagram(storytelling_points)
|
| 62 |
+
st.markdown(mermaid_circular, unsafe_allow_html=True)
|
| 63 |
+
|
| 64 |
+
with tab3:
|
| 65 |
+
st.markdown("### Categorical Groups")
|
| 66 |
+
mermaid_categories = generate_categorical_diagram(storytelling_points)
|
| 67 |
+
st.markdown(mermaid_categories, unsafe_allow_html=True)
|
| 68 |
+
|
| 69 |
+
# Interactive element selector
|
| 70 |
+
st.markdown("## π Explore Individual Storytelling Elements")
|
| 71 |
+
|
| 72 |
+
col1, col2 = st.columns([1, 3])
|
| 73 |
+
|
| 74 |
+
with col1:
|
| 75 |
+
# Create options for the dropdown - combine emoji, number and keyword
|
| 76 |
+
options = [f"{point['number']}. {point['emoji']} {point['keyword'].capitalize()}" for point in storytelling_points]
|
| 77 |
+
selected_option = st.selectbox("Select an element to explore:", options)
|
| 78 |
+
|
| 79 |
+
# Get the selected point number
|
| 80 |
+
selected_number = int(selected_option.split('.')[0])
|
| 81 |
+
selected_point = next(point for point in storytelling_points if point['number'] == selected_number)
|
| 82 |
+
|
| 83 |
+
with col2:
|
| 84 |
+
st.markdown(f"### {selected_option}")
|
| 85 |
+
st.markdown(f"**Description:** {selected_point['description']}")
|
| 86 |
+
|
| 87 |
+
# Add examples based on the selected point
|
| 88 |
+
examples = {
|
| 89 |
+
1: "'Two weeks ago, I'm sitting on my couch in my living room taking a deep breath...'",
|
| 90 |
+
2: "'I'm in my office. I open my laptop and start reading a message from my manager...'",
|
| 91 |
+
3: "Instead of saying 'I was excited', say 'I thought: ah, this will be so cool! Finally, I can see her after all that time.'",
|
| 92 |
+
4: "Instead of saying 'I was relieved', say 'In that moment, I leaned backward and let out this big sigh.'",
|
| 93 |
+
5: "Instead of saying 'My manager was very happy with my work', say 'In that moment, my manager looked at me and said: Wow, that was really the best presentation you've ever given.'",
|
| 94 |
+
6: "John Krasinski didn't just say 'I met a customs agent who was surprised about my wife.' He zoomed into the specific exchange of dialogue.",
|
| 95 |
+
7: "'The moment I walked through those doors, the music stopped, all eyes turned to me, and I could feel my heart pounding against my chest.'",
|
| 96 |
+
8: "Simply saying 'conference room' is better than listing every piece of furniture and decor.",
|
| 97 |
+
9: "Use active verbs like 'I grabbed my phone, texted her quickly, and rushed out the door' instead of static descriptions.",
|
| 98 |
+
10: "'He kept tapping his pen on the table and glancing up at the clock every few seconds' creates a clear image of anxiety.",
|
| 99 |
+
11: "Notice how comedians like John Krasinski use timing, facial expressions, and precise dialogue to enhance their stories.",
|
| 100 |
+
12: "Use 'Yeah, that's crazy!' instead of 'Yes, that's quite extraordinary.'",
|
| 101 |
+
13: "Cut out unnecessary backstory and context that doesn't serve the core narrative.",
|
| 102 |
+
14: "Focus on the surprise revelation, the key decision moment, or the unexpected twist.",
|
| 103 |
+
15: "Walk through events chronologically or in a way that builds tension effectively.",
|
| 104 |
+
16: "Start with anticipation, build to frustration, then release with relief or humor.",
|
| 105 |
+
17: "If a detail doesn't serve the story's purpose or emotional impact, leave it out.",
|
| 106 |
+
18: "'I thought: Oh no, everyone's going to think I'm an absolute fraud now!'",
|
| 107 |
+
19: "Sarah Willingham's story focused on the moment the lawyer realized his mistakeβthe color draining from his face.",
|
| 108 |
+
20: "A complete story incorporates all five elements to create an immersive experience."
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
st.markdown(f"**Example:** {examples[selected_number]}")
|
| 112 |
+
|
| 113 |
+
# Five pillars section
|
| 114 |
+
st.markdown("## π§ The Five Pillars of Storytelling")
|
| 115 |
+
|
| 116 |
+
pillars = storytelling_points[:5] # First 5 points are the pillars
|
| 117 |
+
|
| 118 |
+
cols = st.columns(5)
|
| 119 |
+
for i, pillar in enumerate(pillars):
|
| 120 |
+
with cols[i]:
|
| 121 |
+
st.markdown(f"### {pillar['emoji']} {pillar['keyword'].capitalize()}")
|
| 122 |
+
st.markdown(f"{pillar['description']}")
|
| 123 |
+
|
| 124 |
+
st.markdown(f"> \"{quotes[2]['text']}\" β {quotes[2]['author']}")
|
| 125 |
+
|
| 126 |
+
def generate_vertical_diagram(points):
|
| 127 |
+
"""Generate a vertical flow Mermaid diagram"""
|
| 128 |
+
|
| 129 |
+
nodes = []
|
| 130 |
+
connections = []
|
| 131 |
+
styles = []
|
| 132 |
+
|
| 133 |
+
# Create nodes and connections
|
| 134 |
+
for i, point in enumerate(points):
|
| 135 |
+
node_id = point['number']
|
| 136 |
+
node_label = f"{node_id}. {point['emoji']} {point['keyword'].capitalize()}"
|
| 137 |
+
nodes.append(f" {node_id}(\"{node_label}\")")
|
| 138 |
+
|
| 139 |
+
# Add connection to next node (or back to first if last)
|
| 140 |
+
if i < len(points) - 1:
|
| 141 |
+
connections.append(f" {node_id} --> {points[i+1]['number']}")
|
| 142 |
+
else:
|
| 143 |
+
connections.append(f" {node_id} --> {points[0]['number']}")
|
| 144 |
+
|
| 145 |
+
# Add style classes
|
| 146 |
+
styles.extend([
|
| 147 |
+
" %% Style definitions",
|
| 148 |
+
" classDef foundation fill:#ff9900,stroke:#333,stroke-width:2px,color:#000;",
|
| 149 |
+
" classDef technique fill:#66cc99,stroke:#333,stroke-width:2px,color:#000;",
|
| 150 |
+
" classDef learning fill:#6699cc,stroke:#333,stroke-width:2px,color:#000;",
|
| 151 |
+
" classDef mastery fill:#cc6699,stroke:#333,stroke-width:2px,color:#000;",
|
| 152 |
+
"",
|
| 153 |
+
" %% Apply styles",
|
| 154 |
+
" class 1,2,3,4,5 foundation;",
|
| 155 |
+
" class 6,7,8,9,10 technique;",
|
| 156 |
+
" class 11,12,13,14,15 learning;",
|
| 157 |
+
" class 16,17,18,19,20 mastery;"
|
| 158 |
+
])
|
| 159 |
+
|
| 160 |
+
# Assemble diagram
|
| 161 |
+
diagram = ["```mermaid", "graph TD"]
|
| 162 |
+
diagram.extend(nodes)
|
| 163 |
+
diagram.extend(connections)
|
| 164 |
+
diagram.extend(styles)
|
| 165 |
+
diagram.append("```")
|
| 166 |
+
|
| 167 |
+
return "\n".join(diagram)
|
| 168 |
+
|
| 169 |
+
def generate_circular_diagram(points):
|
| 170 |
+
"""Generate a circular flow Mermaid diagram"""
|
| 171 |
+
|
| 172 |
+
# Calculate positions in a circle
|
| 173 |
+
import math
|
| 174 |
+
|
| 175 |
+
diagram = ["```mermaid", "graph TD"]
|
| 176 |
+
|
| 177 |
+
# Create nodes in circular positions using subgraphs
|
| 178 |
+
diagram.append(" %% Nodes")
|
| 179 |
+
|
| 180 |
+
# Create all nodes first
|
| 181 |
+
for point in points:
|
| 182 |
+
node_id = point['number']
|
| 183 |
+
node_label = f"{node_id}. {point['emoji']} {point['keyword'].capitalize()}"
|
| 184 |
+
diagram.append(f" {node_id}[\"{node_label}\"]")
|
| 185 |
+
|
| 186 |
+
# Group nodes into four quarters
|
| 187 |
+
diagram.extend([
|
| 188 |
+
" %% Connections - circular flow",
|
| 189 |
+
" 1 --> 2 --> 3 --> 4 --> 5 --> 6 --> 7 --> 8 --> 9 --> 10",
|
| 190 |
+
" 10 --> 11 --> 12 --> 13 --> 14 --> 15 --> 16 --> 17 --> 18 --> 19 --> 20",
|
| 191 |
+
" 20 -.-> 1",
|
| 192 |
+
"",
|
| 193 |
+
" %% Style definitions",
|
| 194 |
+
" classDef q1 fill:#ff9900,stroke:#333,stroke-width:2px,color:#000;",
|
| 195 |
+
" classDef q2 fill:#66cc99,stroke:#333,stroke-width:2px,color:#000;",
|
| 196 |
+
" classDef q3 fill:#6699cc,stroke:#333,stroke-width:2px,color:#000;",
|
| 197 |
+
" classDef q4 fill:#cc6699,stroke:#333,stroke-width:2px,color:#000;",
|
| 198 |
+
"",
|
| 199 |
+
" %% Apply styles by quarters",
|
| 200 |
+
" class 1,2,3,4,5 q1;",
|
| 201 |
+
" class 6,7,8,9,10 q2;",
|
| 202 |
+
" class 11,12,13,14,15 q3;",
|
| 203 |
+
" class 16,17,18,19,20 q4;"
|
| 204 |
+
])
|
| 205 |
+
|
| 206 |
+
diagram.append("```")
|
| 207 |
+
|
| 208 |
+
return "\n".join(diagram)
|
| 209 |
+
|
| 210 |
+
def generate_categorical_diagram(points):
|
| 211 |
+
"""Generate a categorical Mermaid diagram with storytelling elements grouped by category"""
|
| 212 |
+
|
| 213 |
+
diagram = ["```mermaid", "graph TB"]
|
| 214 |
+
|
| 215 |
+
# Create category subgraphs
|
| 216 |
+
diagram.extend([
|
| 217 |
+
" subgraph Foundation[\"ποΈ Foundation Elements\"]",
|
| 218 |
+
" 1(\"`1. π Location`\")",
|
| 219 |
+
" 2(\"`2. π Action`\")",
|
| 220 |
+
" 3(\"`3. π§ Thoughts`\")",
|
| 221 |
+
" 4(\"`4. π² Emotions`\")",
|
| 222 |
+
" 5(\"`5. π¬ Dialogue`\")",
|
| 223 |
+
" end",
|
| 224 |
+
"",
|
| 225 |
+
" subgraph Techniques[\"π§ Storytelling Techniques\"]",
|
| 226 |
+
" 6(\"`6. π Zoom In`\")",
|
| 227 |
+
" 7(\"`7. π¬ Transport`\")",
|
| 228 |
+
" 8(\"`8. ποΈ Simple Details`\")",
|
| 229 |
+
" 9(\"`9. β© Momentum`\")",
|
| 230 |
+
" 10(\"`10. ποΈ Visualization`\")",
|
| 231 |
+
" end",
|
| 232 |
+
"",
|
| 233 |
+
" subgraph Development[\"π Story Development\"]",
|
| 234 |
+
" 11(\"`11. π Study Masters`\")",
|
| 235 |
+
" 12(\"`12. π£οΈ Natural Speech`\")",
|
| 236 |
+
" 13(\"`13. π€Έ Simplify`\")",
|
| 237 |
+
" 14(\"`14. π§© Core Elements`\")",
|
| 238 |
+
" 15(\"`15. πΆ Step by Step`\")",
|
| 239 |
+
" end",
|
| 240 |
+
"",
|
| 241 |
+
" subgraph Mastery[\"π Storytelling Mastery\"]",
|
| 242 |
+
" 16(\"`16. π Emotional Arc`\")",
|
| 243 |
+
" 17(\"`17. π― Stay Focused`\")",
|
| 244 |
+
" 18(\"`18. π€ Be Human`\")",
|
| 245 |
+
" 19(\"`19. β‘ Key Moments`\")",
|
| 246 |
+
" 20(\"`20. π§ Five Pillars`\")",
|
| 247 |
+
" end",
|
| 248 |
+
"",
|
| 249 |
+
" %% Connections between categories",
|
| 250 |
+
" Foundation --> Techniques",
|
| 251 |
+
" Techniques --> Development",
|
| 252 |
+
" Development --> Mastery",
|
| 253 |
+
" Mastery -.-> Foundation",
|
| 254 |
+
])
|
| 255 |
+
|
| 256 |
+
diagram.append("```")
|
| 257 |
+
|
| 258 |
+
return "\n".join(diagram)
|
| 259 |
+
|
| 260 |
+
if __name__ == "__main__":
|
| 261 |
+
main()
|
| 262 |
+
```
|
| 263 |
+
|
| 264 |
+
|