Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -178,18 +178,11 @@ def ui():
|
|
178 |
<div style="text-align:center">
|
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 herf="https://github.com/MooreThreads/Moore-AnimateAnyone"> our GitHub repo </a> 🤗. </p>
|
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 +198,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 +229,13 @@ def ui():
|
|
236 |
)
|
237 |
submit = gr.Button("Animate")
|
238 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
239 |
def read_video(video):
|
240 |
return video
|
241 |
|
@@ -292,4 +292,4 @@ def ui():
|
|
292 |
|
293 |
demo = ui()
|
294 |
demo.queue(max_size=10)
|
295 |
-
demo.launch(share=True, show_api=False)
|
|
|
178 |
<div style="text-align:center">
|
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 |
+
<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>
|
|
|
182 |
</div>
|
183 |
</div>
|
184 |
"""
|
185 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
|
187 |
with gr.Row():
|
188 |
reference_image = gr.Image(label="Reference Image")
|
|
|
198 |
label="Height", minimum=512, maximum=960, value=512, step=64
|
199 |
)
|
200 |
length_slider = gr.Slider(
|
201 |
+
label="Video Length", minimum=24, maximum=120, value=24, step=24
|
202 |
)
|
203 |
with gr.Row():
|
204 |
seed_textbox = gr.Textbox(label="Seed", value=-1)
|
|
|
229 |
)
|
230 |
submit = gr.Button("Animate")
|
231 |
|
232 |
+
animation = gr.Video(
|
233 |
+
format="mp4",
|
234 |
+
label="Animation Results",
|
235 |
+
height=448,
|
236 |
+
autoplay=True,
|
237 |
+
)
|
238 |
+
|
239 |
def read_video(video):
|
240 |
return video
|
241 |
|
|
|
292 |
|
293 |
demo = ui()
|
294 |
demo.queue(max_size=10)
|
295 |
+
demo.launch(share=True, show_api=False)
|