Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -11,33 +11,213 @@ load_dotenv()
|
|
11 |
|
12 |
# ========== 默认选项和数据 ==========
|
13 |
EXPRESSIONS = [
|
14 |
-
"smiling", "determined", "surprised", "serene", "smug", "thinking",
|
15 |
-
"looking back", "laughing", "angry", "pensive", "confident",
|
16 |
-
"grinning", "thoughtful", "sad tears", "bewildered"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
]
|
18 |
ITEMS = [
|
19 |
-
"magic wand", "sword", "flower", "book of spells", "earrings", "loincloth",
|
20 |
-
"slippers", "ancient scroll", "music instrument", "shield", "dagger",
|
21 |
-
"headband", "leg ties", "staff", "potion", "crystal ball", "anklet",
|
22 |
-
"ribbon", "lantern", "amulet", "ring"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
]
|
24 |
OTHER_DETAILS = [
|
25 |
-
|
26 |
-
"
|
27 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
]
|
29 |
SCENES = [
|
30 |
-
|
31 |
-
"
|
32 |
-
"
|
33 |
-
"
|
34 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
]
|
|
|
36 |
CAMERA_ANGLES = [
|
37 |
-
"low-angle shot", "
|
38 |
-
"
|
39 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
]
|
|
|
41 |
QUALITY_PROMPTS = [
|
42 |
"cinematic lighting", "sharp shadow", "award-winning", "masterpiece",
|
43 |
"vivid colors", "high dynamic range", "immersive", "studio quality",
|
|
|
11 |
|
12 |
# ========== 默认选项和数据 ==========
|
13 |
EXPRESSIONS = [
|
14 |
+
"smiling", "determined", "surprised", "serene", "smug", "thinking",
|
15 |
+
"looking back", "laughing", "angry", "pensive", "confident",
|
16 |
+
"grinning", "thoughtful", "sad tears", "bewildered",
|
17 |
+
"amused", "excited", "anxious", "confused", "curious",
|
18 |
+
"delighted", "disappointed", "elated", "embarrassed",
|
19 |
+
"envious", "fearful", "frustrated", "hopeful", "horrified",
|
20 |
+
"inspired", "jealous", "melancholic", "nervous", "playful",
|
21 |
+
"relieved", "remorseful", "skeptical", "terrified", "thrilled",
|
22 |
+
"uneasy", "wistful", "zany", "neutral", "expressionless",
|
23 |
+
"sleepy", "tired", "relaxed", "drooling", "sick", "nauseated",
|
24 |
+
"sneezing", "hot", "cold", "woozy", "dizzy",
|
25 |
+
"(๑•̀ㅂ•́)و✧", "(╯°□°)╯︵ ┻━┻", "(✧ω✧)", "(・_・;)",
|
26 |
+
"(。•́︿•̀。)", "(≧◡≦)", "(╥﹏╥)", "( ̄▽ ̄)",
|
27 |
+
"(ಥ_ಥ)", "(⊙_☉)", "(¬_¬)", "(°ロ°)!", "(≧︿≦)",
|
28 |
+
"(´•ω•`)", "(°ー°〃)", "(^人^)", "(╯︵╰,)", "(ಥ﹏ಥ)",
|
29 |
+
"(´・_・`)", "(ノ´ー`)ノ", "(ノಥ益ಥ)ノ", "(。♥‿♥。)", "(づ ̄ ³ ̄)づ",
|
30 |
+
"(☉。☉)!", "(>_<)", "(☆ω☆)", "(x_x)", "o(TヘTo)", "(︶︹︺)",
|
31 |
+
"(⌒_⌒;)", "(☍﹏⁰)。", "(´・_・)", "(⊙﹏⊙)", "(。-_-。)", "(¬‿¬)",
|
32 |
+
"(°∀°)", "(◕‿◕)", "(T_T)", "( ̄︿ ̄)", "(>人<)", "(つД`)ノ",
|
33 |
+
"(`・ω・´)", "(๑´ڡ`๑)", "(✿╹◡╹)", "(´ε` )♡", "(•̀ᴗ•́)و",
|
34 |
+
"(∩`-´)⊃━☆゚.*・。゚", "(☞゚ヮ゚)☞", "(ノ≧ڡ≦)!", "(´・ω・`)ノ", "(⁎⁍̴̛ᴗ⁍̴̛⁎)",
|
35 |
+
"(╬ಠ益ಠ)", "(ノಠ益ಠ)ノ彡┻━┻", "(ง'̀-'́)ง", "(´。• ω •。`) ♡"
|
36 |
]
|
37 |
ITEMS = [
|
38 |
+
"magic wand", "sword", "flower", "book of spells", "earrings", "loincloth",
|
39 |
+
"slippers", "ancient scroll", "music instrument", "shield", "dagger",
|
40 |
+
"headband", "leg ties", "staff", "potion", "crystal ball", "anklet",
|
41 |
+
"ribbon", "lantern", "amulet", "ring", "enchanted cloak", "mystic orb",
|
42 |
+
"charred tome", "golden chalice", "feather quill", "obsidian blade",
|
43 |
+
"healing herb", "celestial compass", "shimmering veil", "phoenix feather",
|
44 |
+
"rune stone", "dragon scale", "mirror of truth", "key of destiny",
|
45 |
+
"shadow dagger", "firestone", "glimmering necklace", "moonlit tiara",
|
46 |
+
"elixir of vitality", "serpent bracelet", "orb of whispers", "ivy circlet",
|
47 |
+
"ember crown", "storm gauntlets", "twilight boots", "ethereal shawl",
|
48 |
+
"guardian pendant", "pearl of wisdom", "arcane hourglass", "binding chain",
|
49 |
+
"gem of clarity", "silk gloves", "wings of ascension", "crystal shard",
|
50 |
+
"sapphire brooch", "mask of shadows", "ashwood cane", "silver flute",
|
51 |
+
"chime of echoes", "star chart", "jade pendant", "hourglass of time",
|
52 |
+
"frosted gem", "vial of starlight", "scroll of secrets", "golden anklet",
|
53 |
+
"radiant crown", "veil of illusions", "ring of eternity", "soulbound locket",
|
54 |
+
"enchanted map", "mystic key", "ancient coin", "wizard's journal",
|
55 |
+
"magic ink", "sorcerer's robe", "elven boots", "dwarven hammer",
|
56 |
+
"griffin feather", "fairy dust", "necromancer's book", "ranger's bow",
|
57 |
+
"bard's lute", "monk's beads", "thief's dagger", "alchemist's flask",
|
58 |
+
"summoner's tome", "elemental gem", "timekeeper's watch", "portal key",
|
59 |
+
"invisibility cloak", "levitation charm", "mind control orb", "fire-breathing potion",
|
60 |
+
"earthquake drum", "storm summoning horn", "sunstone", "moonstone",
|
61 |
+
"stardust vial", "dreamcatcher", "truth serum", "luck charm",
|
62 |
+
"fortune dice", "destiny thread", "life potion", "eternal torch",
|
63 |
+
"necklace", "bracelet", "brooch", "tie clip", "cufflinks", "belt",
|
64 |
+
"scarf", "shawl", "hat", "hairpin", "hairband", "gloves", "waist chain",
|
65 |
+
"keychain", "bag charm", "badge", "armband", "lapel pin", "sash",
|
66 |
+
"beaded fringe", "embroidered patch", "rhinestones", "pearls", "chains",
|
67 |
+
"suspenders", "garter belts", "stockings", "mittens", "masks", "veils",
|
68 |
+
"handbags", "clutches", "backpacks", "satchels", "messenger bags",
|
69 |
+
"wristwatches", "pocket watches", "sunglasses", "spectacles", "chokers",
|
70 |
+
"lockets", "pendants", "talismans", "charms", "ankle bracelets", "toe rings"
|
71 |
]
|
72 |
OTHER_DETAILS = [
|
73 |
+
# 环境动态细节
|
74 |
+
"sparkles", "magical aura", "lens flare", "fireworks in the background",
|
75 |
+
"smoke effects", "light trails", "falling leaves", "glowing embers",
|
76 |
+
"floating particles", "rays of light", "shimmering mist", "ethereal glow",
|
77 |
+
"ripples on water", "dust motes in sunlight", "swirling fog", "glittering frost",
|
78 |
+
"reflections on surfaces", "flickering shadows", "falling snowflakes",
|
79 |
+
"twinkling stars", "crescent moonlight", "glowing fireflies", "soft cloud wisps",
|
80 |
+
"subtle rain", "scattered feathers", "wind-blown sand", "cracks in the ground",
|
81 |
+
"waves crashing in the distance", "glowing mushrooms", "hanging vines",
|
82 |
+
"faint rainbows", "drifting ash", "rising bubbles", "aurora in the sky",
|
83 |
+
"shattered glass fragments", "falling cherry blossoms", "sunbeams breaking through clouds",
|
84 |
+
"water droplets on leaves", "wisps of smoke", "dimly glowing lanterns",
|
85 |
+
"undulating waves of grass", "sparkling dewdrops", "glistening cobwebs",
|
86 |
+
"golden hour light", "tiny glowing orbs", "vapor trails in the sky",
|
87 |
+
"distant silhouettes of birds", "slowly moving shadows", "softly pulsing glows",
|
88 |
+
"gently falling powder snow", "mirages on the horizon", "waving tree branches",
|
89 |
+
"radiant beams through fog", "scattered golden leaves", "softly glowing fungi",
|
90 |
+
"rippling heatwaves", "glowing lines on surfaces",
|
91 |
+
# 叙事辅助细节
|
92 |
+
"ancient carvings on walls", "worn-out banners fluttering", "cracked stained glass",
|
93 |
+
"fallen statues covered in vines", "ceremonial fires flickering", "abandoned tools scattered",
|
94 |
+
"forgotten books on dusty shelves", "hidden inscriptions glowing faintly",
|
95 |
+
"collapsed bridges in the distance", "ancient scripts floating in midair",
|
96 |
+
"trails of footsteps in the snow", "discarded musical instruments", "half-buried artifacts",
|
97 |
+
"melting candles on altars", "phantom figures fading in the background",
|
98 |
+
"reflections of unseen movements in water", "shifting sands forming patterns",
|
99 |
+
"layered ruins creating depth", "shattered pottery", "crumbling pillars",
|
100 |
+
"weathered doorways", "dried riverbeds", "overgrown fences", "scattered coins",
|
101 |
+
"glimmering gemstones in cracks", "rusted chains", "torn flags",
|
102 |
+
"broken shields lying in the grass", "ancient bridges covered in moss",
|
103 |
+
"swords embedded in stone", "faded murals on crumbling walls",
|
104 |
+
"mysterious glowing symbols on the ground", "abandoned helmets half-buried in sand",
|
105 |
+
"fossilized remains in rock walls", "golden inscriptions on blackened stone",
|
106 |
+
"vines entwined with ancient statues", "weathered chests hidden under roots",
|
107 |
+
"bone fragments scattered across ruins", "broken clocks frozen in time",
|
108 |
+
"lichen-covered stones marking old pathways", "cursed objects glowing faintly in shadows",
|
109 |
+
"forgotten wells with stagnant water", "ashes scattered across altars",
|
110 |
+
"chains hanging from ruined walls", "rusted weapons embedded in tree trunks",
|
111 |
+
"ancient seals broken on stone tablets", "sunken ruins peeking through murky waters",
|
112 |
+
"melted wax pooling on ritual circles", "bird nests in abandoned helmets",
|
113 |
+
"vines overtaking crumbling archways", "bloodstains faded into stone",
|
114 |
+
"remains of campfires surrounded by bones", "fragments of ancient maps on walls",
|
115 |
+
"forgotten altars surrounded by offerings", "spiral patterns carved into the ground",
|
116 |
+
"wind chimes tangled in overgrowth", "scattered gemstones sparkling in the dirt",
|
117 |
+
# 科幻背景细节
|
118 |
+
"hovering drones patrolling the area", "holographic billboards flickering",
|
119 |
+
"neon signs reflecting on wet pavement", "futuristic skyscrapers piercing the clouds",
|
120 |
+
"flying cars zipping through the sky", "robotic vendors at street corners",
|
121 |
+
"cybernetic enhancements visible on pedestrians", "digital advertisements projected in midair",
|
122 |
+
"energy shields protecting buildings", "automated cleaning bots sweeping the streets",
|
123 |
+
"glowing circuit patterns on walls", "transparent bridges connecting towers",
|
124 |
+
"artificial intelligence interfaces displayed publicly", "bioluminescent plants lining walkways",
|
125 |
+
"virtual reality kiosks with users immersed", "mechanical limbs discarded in alleys",
|
126 |
+
"surveillance cameras with blinking lights", "underground labs emitting strange glows",
|
127 |
+
"spaceships landing on rooftop pads", "androids interacting with humans seamlessly",
|
128 |
+
"laser engravings on metallic surfaces", "plasma screens displaying news feeds",
|
129 |
+
"synthetic food stands with diverse offerings", "hoverboards parked near entrances",
|
130 |
+
"genetic modification clinics with bright signage", "quantum computing hubs glowing faintly",
|
131 |
+
"fusion reactors humming in the distance", "alien flora glowing in sterile environments",
|
132 |
+
"rusted space equipment scattered on barren ground", "forcefields shimmering in the air",
|
133 |
+
"futuristic statues commemorating unknown heroes", "orbital stations visible in the sky",
|
134 |
+
"cracked stasis pods leaking mist", "discarded exoskeletons in shadowy corners",
|
135 |
+
"dimly lit corridors with blinking control panels", "holographic maps rotating slowly",
|
136 |
+
"time-worn spacecraft hulls covered in scratches", "energy conduits glowing along walls"
|
137 |
]
|
138 |
SCENES = [
|
139 |
+
# 自然场景
|
140 |
+
"sunset beach", "rainy city street at night", "high blue sky",
|
141 |
+
"snowy mountain peak", "desert ruins", "enchanted meadow",
|
142 |
+
"misty forest trail", "hidden valley surrounded by cliffs",
|
143 |
+
"raging waterfall in a lush jungle", "golden wheat fields at sunset",
|
144 |
+
"stormy coastline with crashing waves", "dense rainforest with towering trees",
|
145 |
+
"wind-swept plains under an overcast sky", "frozen tundra stretching endlessly",
|
146 |
+
"emerald lake reflecting the mountains", "serene meadow under starlit skies",
|
147 |
+
# 奇幻场景
|
148 |
+
"fantasy forest with glowing mushrooms", "particles magic world",
|
149 |
+
"floating ash land", "abandoned castle", "underwater city",
|
150 |
+
"haunted mansion", "glacial cavern", "floating islands above a magical sea",
|
151 |
+
"ancient ruins glowing with runes", "crystal cave with shimmering walls",
|
152 |
+
"celestial palace above the clouds", "dark enchanted forest with eerie lights",
|
153 |
+
"golden desert oasis with sparkling waters", "volcanic landscape with rivers of lava",
|
154 |
+
"towering spires of an elven city", "hidden fae village among massive flowers",
|
155 |
+
"ancient temple shrouded in mist",
|
156 |
+
# 科幻场景
|
157 |
+
"futuristic skyline at dawn", "steampunk marketplace",
|
158 |
+
"orbital station overlooking a planet", "neon-lit cyberpunk cityscape",
|
159 |
+
"crumbling space station", "alien planet with multiple moons",
|
160 |
+
"terraforming facility on barren land", "gravity-defying sci-fi structures",
|
161 |
+
"bioluminescent forest on an alien world", "megastructure city layered with lights",
|
162 |
+
"robot factory with moving assembly lines", "underground research lab glowing faintly",
|
163 |
+
"time-warped city merging eras", "abandoned alien settlement in the desert",
|
164 |
+
"holographic gardens in the void", "massive starship docks bustling with activity",
|
165 |
+
# 废墟与遗迹场景
|
166 |
+
"ancient battlefield with broken weapons", "collapsed bridges over a canyon",
|
167 |
+
"abandoned cathedral overgrown with vines", "forgotten library buried in sand",
|
168 |
+
"crumbling statues in a misty valley", "deserted mining town under a red sky",
|
169 |
+
"swampy ruins with submerged pillars", "eroded city reclaimed by nature",
|
170 |
+
"old lighthouse on rocky cliffs", "sunken ship graveyard in shallow seas",
|
171 |
+
"ruined amphitheater under moonlight", "forgotten monastery at a mountain's edge",
|
172 |
+
"overgrown garden in a dilapidated mansion", "war-torn city with smoking rubble",
|
173 |
+
"ancient crypt deep underground",
|
174 |
+
# 情绪化场景
|
175 |
+
"peaceful village at dawn", "stormy mountain pass with lightning",
|
176 |
+
"abandoned carnival under a cloudy sky", "twilight forest bathed in golden light",
|
177 |
+
"melancholic city square after rain", "sunlit cathedral with stained glass reflections",
|
178 |
+
"empty train station at midnight", "serene pond surrounded by blossoms",
|
179 |
+
"vibrant marketplace during a festival", "dim tavern with flickering candles",
|
180 |
+
"lonely pier stretching into foggy waters", "quiet cemetery under crescent moonlight",
|
181 |
+
"hidden spring surrounded by mossy rocks", "eerie swamp with glowing will-o'-the-wisps",
|
182 |
+
"ancient battlefield under a blood-red sky",
|
183 |
+
# 室内场景
|
184 |
+
"opulent throne room in a grand castle", "dimly lit library with towering bookshelves",
|
185 |
+
"abandoned laboratory with broken equipment", "cozy cabin with a roaring fireplace",
|
186 |
+
"ornate ballroom with glittering chandeliers", "sprawling dining hall with long tables",
|
187 |
+
"underground bunker with industrial walls", "luxurious palace bedroom draped in silk",
|
188 |
+
"steampunk workshop filled with gears and tools", "mystical shrine surrounded by candles",
|
189 |
+
"underground dungeon with damp stone walls", "hidden study behind a bookshelf",
|
190 |
+
"sunlit greenhouse filled with exotic plants", "control room glowing with monitors",
|
191 |
+
"train car interior with vintage decor", "haunted attic with cobwebs and trunks",
|
192 |
+
"grand theater with red velvet curtains", "rustic kitchen with copper pots",
|
193 |
+
"modern office with glass walls", "abandoned asylum with graffiti-covered walls",
|
194 |
+
"elegant tea room with porcelain settings", "high-tech lab with robotic arms",
|
195 |
+
"children’s playroom with scattered toys", "ancient council chamber with stone seats",
|
196 |
+
"dim tavern with wooden furniture", "artist's studio with half-finished paintings",
|
197 |
+
"futuristic sleeping pod chamber", "neon-lit arcade with glowing consoles",
|
198 |
+
"classroom with chalkboards and empty desks", "temple hall with intricate carvings"
|
199 |
]
|
200 |
+
|
201 |
CAMERA_ANGLES = [
|
202 |
+
"low-angle shot", "high-angle shot", "normal eye-level shot",
|
203 |
+
"close-up shot", "medium shot", "wide-angle shot",
|
204 |
+
"over-the-shoulder shot", "bird's-eye view", "worm's-eye view",
|
205 |
+
"extreme close-up", "panoramic view", "dynamic tracking shot",
|
206 |
+
"fisheye view", "point-of-view (POV) shot", "from behind shot",
|
207 |
+
"from top shot", "from below shot", "from the side shot",
|
208 |
+
"over-the-head shot", "reaction shot", "through a window shot",
|
209 |
+
"mirror reflection shot", "split-screen shot",
|
210 |
+
"silhouette framing shot", "foreground framing shot",
|
211 |
+
"Dutch angle", "frame within a frame", "obscured view through foliage",
|
212 |
+
"reflected surface view", "shadow-based composition shot",
|
213 |
+
"rotating 360-degree shot", "slow-motion close-up",
|
214 |
+
"freeze-frame shot", "fast zoom-out shot",
|
215 |
+
"tilt-up shot", "tilt-down shot", "panning shot",
|
216 |
+
"crane shot", "dolly zoom", "whip pan shot",
|
217 |
+
"impact tracking shot", "environment dominant framing",
|
218 |
+
"symmetrical center focus", "off-center dynamic composition"
|
219 |
]
|
220 |
+
|
221 |
QUALITY_PROMPTS = [
|
222 |
"cinematic lighting", "sharp shadow", "award-winning", "masterpiece",
|
223 |
"vivid colors", "high dynamic range", "immersive", "studio quality",
|