Spaces:
Runtime error
Runtime error
Move the result at the bottom which is more logical, fix the GitHub link and set the video length maximum to a reachable value
#5
by Fabrice-TIERCELIN - opened
app.py
CHANGED
|
@@ -179,17 +179,11 @@ def ui():
|
|
| 179 |
<div style="display: inline-block; text-align: left;">
|
| 180 |
<p> This is a quick preview demo of Moore-AnimateAnyone. We appreciate the assistance provided by the HuggingFace team in setting up this demo. </p>
|
| 181 |
|
| 182 |
-
<p> If you like this project, please consider giving a star on <a
|
| 183 |
</div>
|
| 184 |
</div>
|
| 185 |
"""
|
| 186 |
)
|
| 187 |
-
animation = gr.Video(
|
| 188 |
-
format="mp4",
|
| 189 |
-
label="Animation Results",
|
| 190 |
-
height=448,
|
| 191 |
-
autoplay=True,
|
| 192 |
-
)
|
| 193 |
|
| 194 |
with gr.Row():
|
| 195 |
reference_image = gr.Image(label="Reference Image")
|
|
@@ -205,7 +199,7 @@ def ui():
|
|
| 205 |
label="Height", minimum=512, maximum=960, value=512, step=64
|
| 206 |
)
|
| 207 |
length_slider = gr.Slider(
|
| 208 |
-
label="Video Length", minimum=24, maximum=
|
| 209 |
)
|
| 210 |
with gr.Row():
|
| 211 |
seed_textbox = gr.Textbox(label="Seed", value=-1)
|
|
@@ -236,6 +230,13 @@ def ui():
|
|
| 236 |
)
|
| 237 |
submit = gr.Button("Animate")
|
| 238 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 239 |
def read_video(video):
|
| 240 |
return video
|
| 241 |
|
|
|
|
| 179 |
<div style="display: inline-block; text-align: left;">
|
| 180 |
<p> This is a quick preview demo of Moore-AnimateAnyone. We appreciate the assistance provided by the HuggingFace team in setting up this demo. </p>
|
| 181 |
|
| 182 |
+
<p> If you like this project, please consider giving a star on <a href="https://github.com/MooreThreads/Moore-AnimateAnyone"> our GitHub repo </a> 🤗. </p>
|
| 183 |
</div>
|
| 184 |
</div>
|
| 185 |
"""
|
| 186 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 187 |
|
| 188 |
with gr.Row():
|
| 189 |
reference_image = gr.Image(label="Reference Image")
|
|
|
|
| 199 |
label="Height", minimum=512, maximum=960, value=512, step=64
|
| 200 |
)
|
| 201 |
length_slider = gr.Slider(
|
| 202 |
+
label="Video Length", minimum=24, maximum=120, value=24, step=24
|
| 203 |
)
|
| 204 |
with gr.Row():
|
| 205 |
seed_textbox = gr.Textbox(label="Seed", value=-1)
|
|
|
|
| 230 |
)
|
| 231 |
submit = gr.Button("Animate")
|
| 232 |
|
| 233 |
+
animation = gr.Video(
|
| 234 |
+
format="mp4",
|
| 235 |
+
label="Animation Results",
|
| 236 |
+
height=448,
|
| 237 |
+
autoplay=True,
|
| 238 |
+
)
|
| 239 |
+
|
| 240 |
def read_video(video):
|
| 241 |
return video
|
| 242 |
|