Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -103,18 +103,15 @@ For each response you MUST:
|
|
103 |
3. Include dialogue or your character's thoughts that reveal personality and motivations
|
104 |
4. Create a strong sense of atmosphere appropriate for {selected_genre}
|
105 |
5. End EVERY response with exactly three numbered choices like this:
|
106 |
-
|
107 |
1. [Complete sentence in second-person starting with a verb (e.g., "You decide to..."/"You attempt to...")]
|
108 |
2. [Complete sentence in second-person starting with a verb (e.g., "You sneak towards..."/"You call out to...")]
|
109 |
3. [Complete sentence in second-person starting with a verb (e.g., "You examine..."/"You reach for...")]
|
110 |
-
|
111 |
IMPORTANT:
|
112 |
- Always maintain second-person perspective throughout the narrative
|
113 |
- Always end with exactly three numbered choices
|
114 |
- Never skip the choices or respond with just narrative
|
115 |
- Each choice must start with "You" followed by a verb
|
116 |
- Format choices exactly as shown above with numbers 1-3
|
117 |
-
|
118 |
Keep the story cohesive by referencing previous events and choices."""
|
119 |
return system_message
|
120 |
|
@@ -199,12 +196,27 @@ def get_storyteller_avatar_url():
|
|
199 |
return "https://api.dicebear.com/7.x/bottts/svg?seed=wizard&backgroundColor=b6e3f4&eyes=bulging"
|
200 |
|
201 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
206 |
|
207 |
-
# Get avatar URL
|
208 |
wizard_avatar = get_storyteller_avatar_url()
|
209 |
|
210 |
with gr.Row():
|
|
|
103 |
3. Include dialogue or your character's thoughts that reveal personality and motivations
|
104 |
4. Create a strong sense of atmosphere appropriate for {selected_genre}
|
105 |
5. End EVERY response with exactly three numbered choices like this:
|
|
|
106 |
1. [Complete sentence in second-person starting with a verb (e.g., "You decide to..."/"You attempt to...")]
|
107 |
2. [Complete sentence in second-person starting with a verb (e.g., "You sneak towards..."/"You call out to...")]
|
108 |
3. [Complete sentence in second-person starting with a verb (e.g., "You examine..."/"You reach for...")]
|
|
|
109 |
IMPORTANT:
|
110 |
- Always maintain second-person perspective throughout the narrative
|
111 |
- Always end with exactly three numbered choices
|
112 |
- Never skip the choices or respond with just narrative
|
113 |
- Each choice must start with "You" followed by a verb
|
114 |
- Format choices exactly as shown above with numbers 1-3
|
|
|
115 |
Keep the story cohesive by referencing previous events and choices."""
|
116 |
return system_message
|
117 |
|
|
|
196 |
return "https://api.dicebear.com/7.x/bottts/svg?seed=wizard&backgroundColor=b6e3f4&eyes=bulging"
|
197 |
|
198 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
199 |
+
# Header section with improved instructions
|
200 |
+
gr.Markdown("""
|
201 |
+
# 🔮 Interactive Story Time
|
202 |
+
|
203 |
+
This AI-powered storytelling experience is a collaboration between you and AI—building a world, scene by scene.
|
204 |
+
You lead the way with your choices, and AI responds, expanding on your ideas.
|
205 |
+
|
206 |
+
### How to Play:
|
207 |
+
1. Describe what you want to do next *(Example: "I step into the ancient library, searching for hidden scrolls")*
|
208 |
+
2. Follow one of the AI's suggestions or write your own next move
|
209 |
+
3. Keep going! The AI remembers your choices and helps shape the evolving adventure
|
210 |
+
|
211 |
+
> **Tip:** The more detail you provide, the deeper the story becomes.
|
212 |
+
""")
|
213 |
+
|
214 |
+
# Remove the old status message and description
|
215 |
+
# with gr.Row():
|
216 |
+
# status_message = gr.Markdown("Ready to begin your adventure...", visible=True)
|
217 |
+
# gr.Markdown("Create a completely unique literary world...")
|
218 |
|
219 |
+
# Get avatar URL and continue with rest of interface
|
220 |
wizard_avatar = get_storyteller_avatar_url()
|
221 |
|
222 |
with gr.Row():
|