XD-MU commited on
Commit
5a6b719
·
1 Parent(s): b1b8a33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -92
app.py CHANGED
@@ -86,114 +86,43 @@ DEMO_DATA = [
86
  "file": "demo1.mp4",
87
  "title": "案例 1",
88
  "script": """
89
- DIALOGUE】:
90
- 1. [0–9 seconds] (Handheld camera effect + panoramic shot, medium close-up)
91
- A wide panoramic shot reveals the desolate scene after the fierce battle: scorched ground, broken wreckage, and scattered embers still glowing faintly. On the right side of the frame stand the protagonist and Meng Ya, both tense and wary, bodies angled slightly toward the center. On the left, Yuan Xue and Zhao Dongxu slump against a burning wooden stake, smoke curling up behind them as they pant weakly.
92
-
93
- The handheld camera slowly moves forward along a straight path, keeping the protagonist and Meng Ya at the far right edge of the frame. It glides toward the left until it settles into a medium close-up on Yuan Xue. Her clothes are torn and singed, her shoulders trembling. Soot streaks her cheeks, and her eyes, wide with lingering fear, are fixed on the protagonist just off-camera.
94
-
95
- Yuan Xue’s lips tremble as she speaks, her voice shaking:
96
- “Thank you so much… You got here just in time. Otherwise, we’d already be a barbecue feast…”
97
-
98
- She exhales sharply and gasps for air, her chest heaving. The camera holds on her for a brief beat, then cuts to the protagonist in a medium close-up from Yuan Xue’s eyeline. Ash dusts his simple dark clothing; his expression is calm but grim. He frowns slightly, his gaze shifting from Yuan Xue down toward Zhao Dongxu.
99
-
100
- With steady concern and a professional tone, he asks:
101
- “How badly are you hurt? Can you still stand?”
102
-
103
- In the final second, the camera pulls back into the same panoramic long shot as at the start, clearly confirming the positions of all four people: the protagonist and Meng Ya on the right, on alert; Yuan Xue and Zhao Dongxu on the left, leaning against the burning stake.
104
-
105
- 2. [9–17 seconds] (Shallow depth of field + panoramic shot, medium shot)
106
- We begin on the same long shot, preserving the established positions. Zhao Dongxu remains in a half-crouched, half-sitting posture against the stake, one hand pressed to the ground.
107
-
108
- The camera then cuts in to a medium shot centered on Zhao Dongxu. The background—where the protagonist and Meng Ya stand—and the distant firelight blur into a soft haze, creating a shallow depth of field. In sharp focus, Zhao Dongxu’s pale, sweat-slicked face fills the frame. Tears run down his cheeks, born from both pain and fear.
109
-
110
- He avoids looking toward the protagonist, keeping his gaze fixed on his own legs. The camera tilts down slightly with him, revealing his numb, motionless lower limbs. Without cutting away, the shot gently tilts back up to his face as he stammers:
111
- “I… I can’t feel my legs at all…”
112
-
113
- His voice trembles, weighed down by despair and helplessness. The camera lingers on his expression for a moment, then, in the final second, pulls back again to the panoramic long shot. Zhao Dongxu’s small, broken figure on the left contrasts with the protagonist’s upright, serious silhouette on the right, visually reinforcing the difference between despair and composure.
114
-
115
- 3. [17–25 seconds] (Panning shot + wide shot, medium shot)
116
- From the long shot, we see the same layout: protagonist and Meng Ya on the right, Yuan Xue and Zhao Dongxu near the burning stake on the left. Meng Ya, positioned slightly behind and to the right of the protagonist, takes two firm steps forward toward the center, changing the formation so that he stands slightly ahead of the protagonist in the frame.
117
-
118
- The camera cuts to a medium shot of Meng Ya from the front. Cinders cling to his clothing; his arms are crossed over his chest, and his expression is stern and uncompromising. He looks past the lens toward the left, directly addressing Yuan Xue and Zhao Dongxu.
119
-
120
- In an unquestionable tone, he says:
121
- “If you’re not strong enough, don’t take on a top-tier commission. Come with us. We’ll head back to camp and get you treated by Bai Cao’s family.”
122
-
123
- As he finishes, he shifts his weight and turns his upper body slightly to the right, jerking his chin toward the protagonist. The camera responds by panning right in one smooth movement, sliding from Meng Ya’s profile to a medium shot of the protagonist. The protagonist stands a half-step behind him, still on guard, eyes scanning the surroundings rather than focusing on any one person.
124
-
125
- Meng Ya’s voice continues, now aimed at the protagonist:
126
- “What’s wrong with you? Why are you spacing out?”
127
 
128
- In the last second, the camera pulls back into a wide shot from a slightly adjusted angle, showing Meng Ya now roughly in the center, the protagonist a little behind and to his right, and the wounded pair still near the burning stake on the left. Meng Ya’s position visually divides the space between the frontline and the injured.
 
129
 
130
- 4. [25–34 seconds] (Arc shot + wide shot, close-up)
131
- From this wide shot, the protagonist stands a step ahead of Meng Ya, slightly right of center, facing the wreckage in the distance. He ignores Meng Ya’s question, his shoulders squared, his body angled toward the unseen danger ahead.
132
-
133
- The camera begins a slow arc around the protagonist, starting from his side and moving toward his front. As the camera glides, the background battlefield sweeps past behind him, but the protagonist remains the stable center of the frame. The movement is steady and continuous, ensuring frame-to-frame continuity.
134
-
135
- As the arc completes and the protagonist faces the camera more directly, the shot gradually tightens into a close-up. His eyes are sharp and focused, brow furrowed. Soot and dust mark his face and dark hair; the simple dark clothing he wears shows light scorch marks and ash.
136
-
137
- In a low, controlled voice, he says:
138
- “Something’s not right here.”
139
 
140
- Without cutting, his gaze shifts slightly downward and to the side. The camera follows his line of sight to the remnants of half-extinguished flames on the ground—charcoal still glowing, heat rippling faintly in the air. The shot then tilts back up to his face as he continues:
141
- “The temperature’s still too high, and the flames haven’t really died down… There could still be survivors.”
142
 
143
- In the final second, the camera returns to a wide shot from behind the group. The protagonist stands alone at the front, in silhouette against the dim, smoky light, while Meng Ya and the wounded remain a short distance behind, forming a clear depth of space.
144
 
145
- 5. [34–41 seconds] (Crash zoom + wide shot, extreme close-up)
146
- We hold a wide shot from slightly behind and to the side of the protagonist. He stands at the front, near the right side of the frame, facing deeper into the ruins. Meng Ya is behind him and a little to the left, with Yuan Xue and Zhao Dongxu farther back by the burning stake.
147
 
148
- Suddenly, the protagonists gaze snaps diagonally upward toward the left. The camera adjusts just enough to include the direction of his gaze. Through drifting smoke in the distance, the faint silhouette of a small aircraft briefly sweeps past the wreckage, partially obscured by haze and debris.
149
 
150
- At the moment of recognition, the camera performs a controlled crash zoom straight into the protagonist’s face, landing on an extreme close-up. His pupils contract sharply; the muscles around his eyes tighten. We catch the subtle movement of his jaw as he draws in a quick breath.
151
 
152
- He murmurs, his realization spilling out:
153
- “And… I’m worried there are still students trapped up ahead.”
154
 
155
- As he speaks, his expression shifts in one continuous motion from shock to firm determination. His eyes harden, focus narrowing on the unseen danger ahead. After holding this for a brief beat, the final second cuts back to a wide shot from the side. The protagonist has already turned his entire body toward the road ahead, taking a decisive step forward along the broken path without hesitation.
156
 
157
- 6. [41–49 seconds] (Deep depth of field + panoramic shot, medium-long shot)
158
- A long panoramic shot from behind shows the protagonist walking forward alone along the debris-strewn path, moving steadily away from the others. Meng Ya, who has been following a short distance behind, gradually slows and then comes to a stop.
159
 
160
- The shot transitions into a medium-long shot with deep depth of field. In the foreground is Meng Ya’s back, his shoulders firm as he turns slightly away from the direction the protagonist is heading. In the midground, the protagonist continues moving forward, his figure still clearly visible. In the background, Yuan Xue supports Zhao Dongxu, helping him adjust his weight as they prepare to move.
 
161
 
162
- Meng Ya raises one arm and waves firmly at the protagonist’s back, his voice loud and decisive:
163
- “Understood. We’ll split up here. I’ll escort the wounded back to camp first. I’ll come find you later.”
164
 
165
- Without cutting, he turns his body more fully toward Yuan Xue and Zhao Dongxu, starting to walk with them in the opposite direction from the protagonist. The deep depth of field keeps all three planes—foreground, midground, and background—clear, emphasizing the moment of separation and Meng Ya’s determination to act.
166
 
167
- In the last second, the camera pulls back into a panoramic long shot from the side. The protagonist is now farther along the path on the right side of the frame, while Meng Ya and the injured are moving away toward the left, the distance between them visibly widening.
168
-
169
- 7. [49–57 seconds] (Whip pan + panoramic shot, medium-long shot)
170
- We start from a long shot, maintaining the spatial relationship from the previous scene. Meng Ya, with one hand lightly steadying Zhao Dongxu and Yuan Xue at his side, walks slowly away from the wreckage. After several steps, he slows down again and gradually comes to a halt, his posture tightening.
171
 
172
- The camera is positioned slightly behind and to the side of Meng Ya, capturing his back and a partial profile as he hesitates. He starts to turn his head forward, then flicks his gaze back over his shoulder toward the protagonist, who is now at a moderate distance behind him.
173
 
174
- The shot shifts into a medium-long frontal angle on Meng Ya, with the protagonist visible, slightly out of focus, in the background. Concern flickers in Meng Ya’s eyes as he raises his voice:
175
- “Hey! Don’t go too far! Big Eye Owl will contact you later!”
176
-
177
- Before he finishes the line, the camera performs a quick whip pan along his line of sight. The motion blur is brief and controlled, ending on a stable medium-long shot of the protagonist, who stands a few steps farther down the path than before, momentarily pausing to listen. His body is angled toward the road ahead, but his head is turned slightly back toward Meng Ya.
178
-
179
- In the final second, the camera widens to a panoramic wide shot from the side. The two figures are aligned along the same path: Meng Ya and the wounded group closer to the foreground on the left, the protagonist farther along the path on the right. The distance between them is just enough for clear communication, visually closing the scene while preserving spatial continuity for the next sequence.
180
-
181
- 【CHARACTER PROFILES】:
182
- - Su Luo: Medium height, light build. Large, expressive eyes; flaxen-brown hair tied back in a slightly messy ponytail, with a few loose strands framing her face. She wears a short, practical jacket over a fitted top, and a clearly visible tool belt at her waist, holding small tools and pouches. Her expressions shift quickly—brows lifting or knitting, lips pressing together—and her emotions are immediately reflected in her eyes and body language.
183
- - Protagonist: Medium height, upright posture. Soft dark hair, slightly tousled by wind, soot, and dust. He wears simple, dark-colored, close-fitting clothing with minimal decoration, showing slight damage and ash stains from battle. His demeanor is reserved and calm; he rarely makes big gestures, instead nodding slightly, shifting his gaze, or tightening his jaw to show his thoughts.
184
-
185
- 【SCENE DESCRIPTION】:
186
- Afternoon sunlight filters through the canopy above a forest clearing, creating dappled patches of light and shadow on the ground. Pebbles, fallen leaves, and a few exposed roots are scattered underfoot. The surrounding trees stand quietly, their trunks and lower branches faintly touched by smoke drifting in from the direction of the wreckage. The atmosphere gradually shifts from tense anxiety to a more focused, cooperative calm, as the characters move from immediate crisis toward coordinated action.
187
-
188
- 【BLOCKING】:
189
- 1. Su Luo walks back and forth in the center of the clearing, tracing a short, repeated path. Occasionally she kicks a pebble aside or nudges a leaf with the tip of her boot. The protagonist stands near the edge of the clearing, a few steps away, slightly to one side, watching her with a composed expression.
190
- 2. The protagonist takes two or three steps forward from the edge toward the center, stopping at a comfortable conversational distance in front of Su Luo. They now face each other, with Su Luo still slightly off-center in the clearing and the protagonist closer to the tree line.
191
- 3. Maintaining this close distance, Su Luo faces the protagonist directly, then gradually turns her body a little sideways, lowering her head as she speaks. Her gaze drops to the ground between them, and her hands hover near her tool belt or jacket hem, subtly fidgeting.
192
- 4. Still at the same distance, Su Luo shifts her stance, changing the angle of her shoulders. She alternates between facing the protagonist and turning slightly sideways, head lowered, her ponytail moving with each small turn. The protagonist remains mostly in place, only adjusting his weight and head angle as he listens.
193
- 5. The close distance is maintained. Su Luo again turns a little sideways, lowering her head. One hand lightly touches the strap of her tool belt or brushes the side of her jacket, creating a small but consistent gesture that repeats naturally. The protagonist continues to stand calmly opposite her, his posture stable.
194
- 6. After a moment of lowered gazes, Su Luo slowly raises her head. They look at each other again, their eyes meeting in the center of the clearing. The protagonist’s shoulders relax slightly, and Su Luo’s expression softens, marking a subtle shift toward mutual understanding.
195
- 7. Su Luo turns her upper body toward the distance, extending one arm to point through a gap in the trees. Her line of sight and the direction of her finger clearly indicate a specific path ahead. The protagonist steps half a stride closer, standing just behind and a little to the side of her, aligning his gaze with hers as they both look toward the indicated direction.
196
- """
197
  },
198
  {
199
  "file": "demo2.mp4",
 
86
  "file": "demo1.mp4",
87
  "title": "案例 1",
88
  "script": """
89
+ Dialogue】:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
 
91
+ 1. [0 seconds - 9 seconds] (Camera Movement: Handheld Camera Effect + Shot Type: Long Shot - Medium Close-up - Long Shot)
92
+ Storyline: In a long shot, Su Luo paces anxiously back and forth in a forest clearing. The protagonist stands a short distance away, quietly watching her. The camera zooms in, switching to a handheld medium close-up, closely following Su Luo. She scratches her hair in frustration, stops, kicks a pebble at her feet, and mutters to herself, "I really shouldn't have agreed to Qin Fei's request. How can I find all three time capsules in such a short time?" She then stomps her foot in annoyance. The scene cuts back to a long shot, making the distance between the two obvious.
93
 
94
+ 2. [9 seconds - 18 seconds] (Camera Movement: Shallow Depth of Field + Shot Type: Long Shot - Medium Shot - Long Shot)
95
+ Storyline: In a long shot, the protagonist takes a few steps closer to Su Luo. The camera switches to a medium shot over the protagonist's shoulder, focusing on Su Luo, with the background blurred. The protagonist asks with concern, "What is a time capsule?" Su Luo turns her head at the sound of her voice, her annoyance temporarily replaced by professionalism. She raises her hand to explain, "It's a time capsule controlled by cloud threads, a mechanism that counts down." The scene cuts back to a wide shot, where the protagonist is now standing in front of Su Luo.
 
 
 
 
 
 
 
96
 
97
+ 3. [18 seconds - 26 seconds] (Camera movement: Tilt Shot + Shot type: Wide shot - Close-up - Wide shot) Plot: In the wide shot, Su Luo continues to explain to the protagonist. The camera cuts to a close-up of Su Luo, her eyes focused, her tone becoming scholarly: "Because it can only be opened at a designated time, it's called a time capsule." The camera tilts downwards, panning across her gestures simulating opening and closing the capsule, then returns to her serious face. The scene cuts back to a wide shot, Su Luo's explanation has ended.
 
98
 
99
+ 4. [26 seconds - 36 seconds] (Camera Type: Arc Shot + Shot Type: Long Shot - Medium Close-up - Long Shot) Plot: In the long shot, Su Luo's body language becomes exaggerated. The camera switches to a medium close-up arc shot circling Su Luo. She puts one hand on her hip, recalling the scene, her tone shifting from explanation to a slightly smug complaint: "Ugh, that guy Qin Fei suddenly said he buried three time capsules containing precious treasures, thinking I definitely wouldn't find them." She raises her chin, mimicking her past self, proudly patting her chest: "As a connoisseur, I said on the spot, 'Hmph, what is there that I, Su Luo, can't find? I'll find them all for you in less than an hour.'" The scene cuts back to the long shot, Su Luo still maintaining her proud pose.
100
 
101
+ 5. [36seconds - 44 seconds] (Camera Type: Shaky Cam + Shot Type: Long Shot - Medium Shot - Long Shot) Plot: In the long shot, the protagonist seems to say something, and Su Luo's posture instantly collapses. The camera shifts to a medium shot of the protagonist, who, with a slightly mocking smile, gently shakes their head: "Uh, judging by your eagerness, you haven't achieved your goal yet, have you?" The focus remains the same, but Su Luo can be seen in the background; her proud posture instantly crumbles, her shoulders slump like a punctured balloon. Slight camera shake hints at Su Luo's inner turmoil. The scene cuts back to a long shot, where Su Luo lowers her head.
 
102
 
103
+ 6. [44 seconds - 53 seconds] (Camera movement: Panning Shot + Shot type: Long shot - Close-up - Long shot) Plot: In the long shot, Su Luo appears somewhat dejected. The camera cuts to a close-up of Su Luo, who awkwardly avoids the protagonist's gaze, fidgeting with the hem of her clothes as she whispers an explanation: "Who knew that guy would be so cunning this time? The boxes were so far apart! Even though he cheated, I don't want to lose face..." Before she can finish, she suddenly looks up, and the camera pans to capture her pleading gaze at the protagonist: "Can you help me?" The scene cuts back to a wide shot, their eyes meeting.
104
 
105
+ 7. [53 seconds - 62 seconds] (Camera movement: Crash Zoom + Shot type: Wide shot - Medium shot - Wide shot) Plot: In the wide shot, the protagonist smiles and nods. The camera quickly zooms in on Su Luo, a rapid medium zoom close-up capturing the fleeting surprise and relief on her face. She immediately perked up, excitedly exclaiming, "Great!" Then, she pointed decisively in two different directions into the distance, "I'll leave those two to you," she said, then pounded her chest confidently, "I'll handle the last one myself." The scene cuts back to a distant view; Su Luo has regained her composure and is ready to set off.
106
 
107
+ 【Character Profile】: Su Luo: Medium height/light and agile physique/clear facial features, with large eyes that can instantly switch emotions, sometimes focused and sharp, sometimes cunning and smug/wears a slightly messy high ponytail with vibrant ash brown hair/wears a short jacket and cotton shirt for ease of movement, a tool belt around her waist, and trousers tucked into sturdy hiking boots/extroverted temperament, with rapidly changing emotions, from pacing restlessly and proudly with hands on hips to pleading for help in embarrassment; her body language is rich, and she's an action-oriented person who can't hide her feelings.
 
108
 
109
+ Main Character: Above average height / Tall and composed posture / Soft facial features, gentle yet sharp eyes, often with a subtle smile / Short, neatly trimmed dark hair / Wears a dark long-sleeved shirt and durable travel trousers, well-fitting and easy to move in, with a simple and understated style / Reserved and calm demeanor, an excellent observer and listener, responding primarily with subtle gestures like nods and smiles, a stark contrast to Su Luo's liveliness.
110
 
111
+ 【Scene Description】: A dappled sunlight-dappled clearing in the woods in the afternoon. The atmosphere gradually shifts from one person's anxiety and the other's calm observation to a relaxed, cooperative one. The scene is open, with pebbles and fallen leaves scattered on the ground, surrounded by tranquil woods.
 
112
 
113
+ 【Positioning】:
114
+ 1. Su Luo moves back and forth in the center of the clearing, while the main character stands at the edge, a considerable distance away.
115
 
116
+ 2. The main character walks towards Su Luo, and eventually the two stand face-to-face, about two or three steps apart.
 
117
 
118
+ 3. Maintaining this close proximity, Su Luo faces the main character and begins to explain. 4. The two remain in the same position, with Su Luo turning towards the protagonist in a slightly theatrical manner.
119
 
120
+ 5. The two remain in the same position, with the protagonist facing Su Luo, while Su Luo lowers her head and turns to the side, avoiding the protagonist's gaze.
 
 
 
121
 
122
+ 6. Su Luo changes her gaze from avoiding the protagonist to looking directly at her, and the two are face to face again, their eyes meeting.
123
 
124
+ 7. The two remain in the same position, with Su Luo briefly facing the protagonist, then turning her body to the side and pointing into the distance.
125
+ """
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
  },
127
  {
128
  "file": "demo2.mp4",