Spaces:
Running
Running
Commit
·
4c6b740
1
Parent(s):
c1c79f5
Add demo data for loading
Browse filesAdd header markdowns.
Add tag to readme.
- .gitignore +0 -3
- README.md +1 -0
- app.py +3 -0
- sessions/pokemon_types_flavoured_soft_drinks/data.json +109 -0
- sessions/pokemon_types_flavoured_soft_drinks/story.json +8 -0
.gitignore
CHANGED
@@ -192,6 +192,3 @@ cython_debug/
|
|
192 |
# refer to https://docs.cursor.com/context/ignore-files
|
193 |
.cursorignore
|
194 |
.cursorindexingignore
|
195 |
-
|
196 |
-
# ignore session dirs
|
197 |
-
sessions/*
|
|
|
192 |
# refer to https://docs.cursor.com/context/ignore-files
|
193 |
.cursorignore
|
194 |
.cursorindexingignore
|
|
|
|
|
|
README.md
CHANGED
@@ -8,6 +8,7 @@ sdk_version: 5.33.1
|
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
|
|
11 |
---
|
12 |
|
13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
11 |
+
tags: agent-demo-track
|
12 |
---
|
13 |
|
14 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
CHANGED
@@ -13,6 +13,9 @@ from src.frontend import (
|
|
13 |
demo = gr.Blocks()
|
14 |
|
15 |
with demo:
|
|
|
|
|
|
|
16 |
start_screen.render()
|
17 |
story_information_widgets.render()
|
18 |
continue_story_screen.render()
|
|
|
13 |
demo = gr.Blocks()
|
14 |
|
15 |
with demo:
|
16 |
+
gr.Markdown('# Sto-rAI')
|
17 |
+
gr.Markdown('Dynamic story builder with a RPG flavor')
|
18 |
+
|
19 |
start_screen.render()
|
20 |
story_information_widgets.render()
|
21 |
continue_story_screen.render()
|
sessions/pokemon_types_flavoured_soft_drinks/data.json
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"states": {
|
3 |
+
"1": {
|
4 |
+
"start": "As the meteor dust settled, Pikachu and Charmander emerged, curious about their new surroundings. Nearby, a bustling city was abuzz with people trying to comprehend the arrival of these creatures. Suddenly, a mysterious figure appeared, offering a challenge: \"Can you help these Pokemon find their favorite soft drinks?\""
|
5 |
+
},
|
6 |
+
"2": {
|
7 |
+
"Pikachu's_Favorite_Drink_Quest": "Unexplored!",
|
8 |
+
"Charmander's_Favorite_Drink_Quest": "As you choose to help Charmander, the mysterious figure reveals a ticking clock: \"A rare solar eclipse will occur soon, and only during this time can Charmander identify its favorite drink. Hurry, the eclipse is approaching fast!\"",
|
9 |
+
"Both_Pokemon's_Drink_Quest": "Unexplored!"
|
10 |
+
},
|
11 |
+
"3": {
|
12 |
+
"City_Search": "Unexplored!",
|
13 |
+
"Local_Expert": "A local expert, Professor Maple, quickly arrives with a cart full of uniquely flavored drinks. She explains that Charmander's favorite might be a fiery blend. The clock ticks loudly, signaling the eclipse's imminent arrival. Charmander's eyes widen as it sniffs the air.",
|
14 |
+
"Taste_Test": "Unexplored!"
|
15 |
+
},
|
16 |
+
"4": {
|
17 |
+
"Charmander_takes_a_sip": "Charmander takes a sip of the Cinnamon Flame Fizz, its eyes lighting up with delight. Just as the eclipse begins, a warm glow surrounds Charmander, signaling it has found its favorite drink. The crowd cheers, and Professor Maple smiles, knowing the challenge was a success."
|
18 |
+
},
|
19 |
+
"5": {
|
20 |
+
"Celebrate_the_success": "Unexplored!",
|
21 |
+
"Learn_about_other_Pokemon": "Unexplored!",
|
22 |
+
"Plan_future_adventures": "As the eclipse fades, the sky returns to its usual hue, and the crowd disperses with excitement. Professor Maple approaches you, suggesting a future journey to explore more Pokemon and their unique preferences. Pikachu and Charmander look eager, ready for more adventures by your side."
|
23 |
+
},
|
24 |
+
"6": {
|
25 |
+
"New_Adventure_Begins": "Unexplored!",
|
26 |
+
"Reflective_Moment": "Unexplored!",
|
27 |
+
"Return_to_Normalcy": "Unexplored!"
|
28 |
+
}
|
29 |
+
},
|
30 |
+
"questions": {
|
31 |
+
"3a9f3748-d14b-43a7-beeb-9ca20b46427b": {
|
32 |
+
"question": "Which_Pokemon_would_you_like_to_help_first?",
|
33 |
+
"options": "{'Pikachu': \"Pikachu's_Favorite_Drink_Quest\", 'Charmander': \"Charmander's_Favorite_Drink_Quest\", 'Both': \"Both_Pokemon's_Drink_Quest\"}"
|
34 |
+
},
|
35 |
+
"154fe5ae-612c-4cc8-a46a-71021627aa28": {
|
36 |
+
"question": "How_will_you_help_Charmander_find_its_favorite_drink_before_the_eclipse?",
|
37 |
+
"options": "{\"Search_the_city_for_clues_about_Charmander's_favorite_flavor\": 'City_Search', 'Consult_a_local_expert_on_Pokemon_tastes': 'Local_Expert', 'Use_your_instincts_and_try_various_drinks_with_Charmander': 'Taste_Test'}"
|
38 |
+
},
|
39 |
+
"740b89c8-3b16-42ec-a819-b026163f3761": {
|
40 |
+
"question": "Which_drink_should_Charmander_try_first?",
|
41 |
+
"options": "{'Spicy_Chili_Soda': 'Charmander_takes_a_sip', 'Cinnamon_Flame_Fizz': 'Charmander_takes_a_sip', 'Peppery_Heat_Burst': 'Charmander_takes_a_sip'}"
|
42 |
+
},
|
43 |
+
"a388a0ff-ee45-4d9e-a285-d9deeaff659e": {
|
44 |
+
"question": "What_do_you_do_next_as_the_eclipse_ends?",
|
45 |
+
"options": "{'Celebrate_with_Charmander_and_the_crowd': 'Celebrate_the_success', 'Thank_Professor_Maple_and_ask_about_other_Pokemon': 'Learn_about_other_Pokemon', 'Reflect_on_the_experience_and_plan_for_future_adventures': 'Plan_future_adventures'}"
|
46 |
+
},
|
47 |
+
"7b000a21-8ee5-4f8f-9f80-3039f22c1340": {
|
48 |
+
"question": "What_do_you_decide_to_do_next?",
|
49 |
+
"options": "{'Embark_on_a_new_adventure_with_Pikachu_and_Charmander': 'New_Adventure_Begins', \"Reflect_on_the_impact_of_the_eclipse_and_the_Pokemon's_arrival\": 'Reflective_Moment', 'Bid_farewell_to_Professor_Maple_and_the_Pokemon,_returning_to_your_usual_life': 'Return_to_Normalcy'}"
|
50 |
+
}
|
51 |
+
},
|
52 |
+
"state_question_map": {
|
53 |
+
"1": {
|
54 |
+
"start": "3a9f3748-d14b-43a7-beeb-9ca20b46427b"
|
55 |
+
},
|
56 |
+
"2": {
|
57 |
+
"Charmander's_Favorite_Drink_Quest": "154fe5ae-612c-4cc8-a46a-71021627aa28"
|
58 |
+
},
|
59 |
+
"3": {
|
60 |
+
"Local_Expert": "740b89c8-3b16-42ec-a819-b026163f3761"
|
61 |
+
},
|
62 |
+
"4": {
|
63 |
+
"Charmander_takes_a_sip": "a388a0ff-ee45-4d9e-a285-d9deeaff659e"
|
64 |
+
},
|
65 |
+
"5": {
|
66 |
+
"Plan_future_adventures": "7b000a21-8ee5-4f8f-9f80-3039f22c1340"
|
67 |
+
}
|
68 |
+
},
|
69 |
+
"categories": [
|
70 |
+
{
|
71 |
+
"name": "Electric Zing",
|
72 |
+
"description": "A sparkling soda that crackles with the energy of Electric-type Pokémon.",
|
73 |
+
"traits": "zesty, electrifying, refreshing"
|
74 |
+
},
|
75 |
+
{
|
76 |
+
"name": "Fire Blaze",
|
77 |
+
"description": "A fiery drink that ignites your taste buds with the heat of Fire-type Pokémon.",
|
78 |
+
"traits": "spicy, warming, invigorating"
|
79 |
+
},
|
80 |
+
{
|
81 |
+
"name": "Water Splash",
|
82 |
+
"description": "A cool and refreshing beverage inspired by the fluidity of Water-type Pokémon.",
|
83 |
+
"traits": "hydrating, calming, crisp"
|
84 |
+
},
|
85 |
+
{
|
86 |
+
"name": "Grass Burst",
|
87 |
+
"description": "An earthy soda with the freshness of Grass-type Pokémon.",
|
88 |
+
"traits": "herbal, earthy, revitalizing"
|
89 |
+
},
|
90 |
+
{
|
91 |
+
"name": "Psychic Twist",
|
92 |
+
"description": "A mysterious and mind-bending drink, capturing the essence of Psychic-type Pokémon.",
|
93 |
+
"traits": "mystical, intriguing, cerebral"
|
94 |
+
}
|
95 |
+
],
|
96 |
+
"categories_seen": {
|
97 |
+
"Electric Zing": false,
|
98 |
+
"Fire Blaze": true,
|
99 |
+
"Water Splash": false,
|
100 |
+
"Grass Burst": false,
|
101 |
+
"Psychic Twist": false
|
102 |
+
},
|
103 |
+
"path_evaluations": {
|
104 |
+
"3a9f3748-d14b-43a7-beeb-9ca20b46427b+Charmander-154fe5ae-612c-4cc8-a46a-71021627aa28+Consult_a_local_expert_on_Pokemon_tastes-740b89c8-3b16-42ec-a819-b026163f3761+Cinnamon_Flame_Fizz-a388a0ff-ee45-4d9e-a285-d9deeaff659e+Reflect_on_the_experience_and_plan_for_future_adventures-7b000a21-8ee5-4f8f-9f80-3039f22c1340+Embark_on_a_new_adventure_with_Pikachu_and_Charmander": [
|
105 |
+
"Fire Blaze",
|
106 |
+
"You chose to help Charmander, a Fire-type Pokémon, and selected the Cinnamon Flame Fizz, a fiery drink, as its favorite. This aligns with the traits of the Fire Blaze category, which is described as a fiery drink that ignites your taste buds with the heat of Fire-type Pokémon. Your choices reflect a preference for the spicy, warming, and invigorating traits associated with Fire Blaze."
|
107 |
+
]
|
108 |
+
}
|
109 |
+
}
|
sessions/pokemon_types_flavoured_soft_drinks/story.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"story_name": "Pokemon types flavoured soft drinks",
|
3 |
+
"story_context": "Out of nowhere, a meteor struck Earth, bringing the Pokemon from another planet to ours!",
|
4 |
+
"categories_context": "Pokemon types flavoured soft drinks",
|
5 |
+
"num_questions": 5,
|
6 |
+
"num_options": 3,
|
7 |
+
"num_categories": 5
|
8 |
+
}
|