Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -553,7 +553,7 @@ inferpipe = WanInferencePipeline(args)
|
|
| 553 |
|
| 554 |
ADAPTIVE_PROMPT_TEMPLATES = [
|
| 555 |
"A realistic video of a person speaking and moving their head accordingly but without moving their hands.",
|
| 556 |
-
"A realistic video of a person speaking and moving their head and eyes accordingly, sometimes looking at the camera and sometimes looking away but
|
| 557 |
"A realistic video of a person speaking and sometimes looking directly to the camera and moving their eyes and pupils and head accordingly and turning and looking at the camera and looking away from the camera based on their movements with dynamic and rhythmic and extensive hand gestures that complement their speech. Their hands are clearly visible, independent, and unobstructed. Their facial expressions are expressive and full of emotion, enhancing the delivery. The camera remains steady, capturing sharp, clear movements and a focused, engaging presence."
|
| 558 |
]
|
| 559 |
|
|
@@ -562,7 +562,7 @@ def slider_value_change(image_path, audio_path, text, num_steps, adaptive_text):
|
|
| 562 |
if adaptive_text:
|
| 563 |
|
| 564 |
if num_steps < 8:
|
| 565 |
-
text = ADAPTIVE_PROMPT_TEMPLATES[
|
| 566 |
elif num_steps < 10:
|
| 567 |
text = ADAPTIVE_PROMPT_TEMPLATES[1]
|
| 568 |
else:
|
|
|
|
| 553 |
|
| 554 |
ADAPTIVE_PROMPT_TEMPLATES = [
|
| 555 |
"A realistic video of a person speaking and moving their head accordingly but without moving their hands.",
|
| 556 |
+
"A realistic video of a person speaking and moving their head and eyes accordingly, sometimes looking at the camera and sometimes looking away but with subtle hands movement that complements their speech.",
|
| 557 |
"A realistic video of a person speaking and sometimes looking directly to the camera and moving their eyes and pupils and head accordingly and turning and looking at the camera and looking away from the camera based on their movements with dynamic and rhythmic and extensive hand gestures that complement their speech. Their hands are clearly visible, independent, and unobstructed. Their facial expressions are expressive and full of emotion, enhancing the delivery. The camera remains steady, capturing sharp, clear movements and a focused, engaging presence."
|
| 558 |
]
|
| 559 |
|
|
|
|
| 562 |
if adaptive_text:
|
| 563 |
|
| 564 |
if num_steps < 8:
|
| 565 |
+
text = ADAPTIVE_PROMPT_TEMPLATES[1]
|
| 566 |
elif num_steps < 10:
|
| 567 |
text = ADAPTIVE_PROMPT_TEMPLATES[1]
|
| 568 |
else:
|