goumsss Claude Opus 4.8 commited on
Commit
e5752bc
ยท
1 Parent(s): 36cd8ec

Expand picker: 24 animals (lookalike-grouped) + 16 places

Browse files

- Animals +12: mouse, wolf, bear, pig, cow, pony, chicken, otter, octopus,
bee, ladybug, dragon โ€” reordered into lookalike groups (pets ยท canines/bears ยท
big cats ยท farm ยท water/amphibian ยท bugs ยท mythical)
- Places +6: canyon, castle, theme park, tent, disco ball, circus
- Kept ANIMAL_EMOJIS/PLACE_EMOJIS (app.py picker) and ANIMAL_MAP/PLACE_MAP
(image_generator prompts) in identical key + order โ€” verified no fallbacks

The style LoRA generalizes to the new animals/places (trained on the original
12ร—10 but it's a style adapter, so new subjects still render in the cozy look).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Files changed (2) hide show
  1. app.py +12 -2
  2. image_generator.py +16 -4
app.py CHANGED
@@ -18,8 +18,18 @@ from image_generator import generate_reward_image
18
 
19
  ANSWERS_PER_LEVEL = 5
20
 
21
- ANIMAL_EMOJIS = ["๐Ÿถ", "๐Ÿฑ", "๐Ÿฐ", "๐ŸฆŠ", "๐Ÿผ", "๐Ÿจ", "๐Ÿฆ", "๐Ÿฏ", "๐Ÿธ", "๐Ÿง", "๐Ÿฆ‹", "๐Ÿฆ„"]
22
- PLACE_EMOJIS = ["๐ŸŒŠ", "๐Ÿ”๏ธ", "๐ŸŒธ", "๐ŸŒˆ", "๐ŸŒ™", "โญ", "๐ŸŒด", "๐Ÿก", "๐ŸŒบ", "๐Ÿ„"]
 
 
 
 
 
 
 
 
 
 
23
 
24
  MATH_LEVEL_NAMES = {1: "Additions", 2: "Subtractions", 3: "Multiplications", 4: "Mix", 5: "Mix +"}
25
 
 
18
 
19
  ANSWERS_PER_LEVEL = 5
20
 
21
+ # Animals โ€” ordered by lookalike groups (pets ยท canines/bears ยท big cats ยท farm ยท
22
+ # water/amphibian ยท bugs ยท mythical) so similar creatures sit together in the picker.
23
+ ANIMAL_EMOJIS = [
24
+ "๐Ÿถ", "๐Ÿฑ", "๐Ÿฐ", "๐Ÿญ", "๐ŸฆŠ", "๐Ÿบ",
25
+ "๐Ÿป", "๐Ÿผ", "๐Ÿจ", "๐Ÿฆ", "๐Ÿฏ", "๐Ÿท",
26
+ "๐Ÿฎ", "๐Ÿด", "๐Ÿ”", "๐Ÿธ", "๐Ÿฆฆ", "๐Ÿง",
27
+ "๐Ÿ™", "๐Ÿฆ‹", "๐Ÿ", "๐Ÿž", "๐Ÿฆ„", "๐Ÿ‰",
28
+ ]
29
+ PLACE_EMOJIS = [
30
+ "๐ŸŒŠ", "๐Ÿ”๏ธ", "๐ŸŒธ", "๐ŸŒˆ", "๐ŸŒ™", "โญ", "๐ŸŒด", "๐Ÿก", "๐ŸŒบ", "๐Ÿ„",
31
+ "๐Ÿœ๏ธ", "๐Ÿฐ", "๐ŸŽข", "โ›บ", "๐Ÿชฉ", "๐ŸŽช",
32
+ ]
33
 
34
  MATH_LEVEL_NAMES = {1: "Additions", 2: "Subtractions", 3: "Multiplications", 4: "Mix", 5: "Mix +"}
35
 
image_generator.py CHANGED
@@ -163,13 +163,19 @@ else:
163
  # Emoji โ†’ descriptive text maps (fed into FLUX prompt)
164
  # ---------------------------------------------------------------------------
165
 
 
166
  ANIMAL_MAP: dict[str, str] = {
167
- "๐Ÿถ": "puppy", "๐Ÿฑ": "kitten", "๐Ÿฐ": "bunny",
168
- "๐ŸฆŠ": "baby fox", "๐Ÿผ": "baby panda", "๐Ÿจ": "baby koala",
169
- "๐Ÿฆ": "baby lion", "๐Ÿฏ": "baby tiger", "๐Ÿธ": "baby frog",
170
- "๐Ÿง": "baby penguin", "๐Ÿฆ‹": "butterfly", "๐Ÿฆ„": "unicorn",
 
 
 
 
171
  }
172
 
 
173
  PLACE_MAP: dict[str, str] = {
174
  "๐ŸŒŠ": "on a sunny beach with ocean waves",
175
  "๐Ÿ”๏ธ": "on a snowy mountain top",
@@ -181,6 +187,12 @@ PLACE_MAP: dict[str, str] = {
181
  "๐Ÿก": "in a cosy cottage garden",
182
  "๐ŸŒบ": "in a field of tropical flowers",
183
  "๐Ÿ„": "in an enchanted mushroom forest",
 
 
 
 
 
 
184
  }
185
 
186
  # Shared style suffix โ€” must stay in sync with STYLE in scripts/generate_dataset.py.
 
163
  # Emoji โ†’ descriptive text maps (fed into FLUX prompt)
164
  # ---------------------------------------------------------------------------
165
 
166
+ # Keep keys + order in sync with ANIMAL_EMOJIS in app.py (grouped by lookalike).
167
  ANIMAL_MAP: dict[str, str] = {
168
+ "๐Ÿถ": "puppy", "๐Ÿฑ": "kitten", "๐Ÿฐ": "bunny",
169
+ "๐Ÿญ": "baby mouse", "๐ŸฆŠ": "baby fox", "๐Ÿบ": "baby wolf",
170
+ "๐Ÿป": "baby bear", "๐Ÿผ": "baby panda", "๐Ÿจ": "baby koala",
171
+ "๐Ÿฆ": "baby lion", "๐Ÿฏ": "baby tiger", "๐Ÿท": "baby pig",
172
+ "๐Ÿฎ": "baby cow", "๐Ÿด": "pony", "๐Ÿ”": "chicken",
173
+ "๐Ÿธ": "baby frog", "๐Ÿฆฆ": "baby otter", "๐Ÿง": "baby penguin",
174
+ "๐Ÿ™": "baby octopus", "๐Ÿฆ‹": "butterfly", "๐Ÿ": "bee",
175
+ "๐Ÿž": "ladybug", "๐Ÿฆ„": "unicorn", "๐Ÿ‰": "baby dragon",
176
  }
177
 
178
+ # Keep keys + order in sync with PLACE_EMOJIS in app.py.
179
  PLACE_MAP: dict[str, str] = {
180
  "๐ŸŒŠ": "on a sunny beach with ocean waves",
181
  "๐Ÿ”๏ธ": "on a snowy mountain top",
 
187
  "๐Ÿก": "in a cosy cottage garden",
188
  "๐ŸŒบ": "in a field of tropical flowers",
189
  "๐Ÿ„": "in an enchanted mushroom forest",
190
+ "๐Ÿœ๏ธ": "in a red rock canyon",
191
+ "๐Ÿฐ": "in a fairytale castle",
192
+ "๐ŸŽข": "at a fun theme park",
193
+ "โ›บ": "in a cosy camping tent",
194
+ "๐Ÿชฉ": "under a sparkling disco ball",
195
+ "๐ŸŽช": "at a colourful circus",
196
  }
197
 
198
  # Shared style suffix โ€” must stay in sync with STYLE in scripts/generate_dataset.py.