Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -176,40 +176,39 @@ def ui():
|
|
176 |
Moore-AnimateAnyone Gradio Demo
|
177 |
</h1>
|
178 |
<div style="text-align:center">
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
<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>
|
184 |
-
</div>
|
185 |
</div>
|
186 |
"""
|
187 |
)
|
188 |
|
|
|
|
|
189 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
190 |
|
191 |
|
|
|
192 |
|
193 |
|
194 |
-
|
195 |
-
with gr.Row():
|
196 |
-
reference_image = gr.Image(label="Reference Image")
|
197 |
-
|
198 |
-
length_slider = gr.Slider(
|
199 |
-
label="Video Length", minimum=24, maximum=120, value=24, step=24
|
200 |
-
)
|
201 |
-
with gr.Row():
|
202 |
-
seed_textbox = gr.Textbox(label="Seed", value=-1)
|
203 |
-
)
|
204 |
-
submit = gr.Button("Animate")
|
205 |
-
|
206 |
animation = gr.Video(
|
207 |
format="mp4",
|
208 |
label="Animation Results",
|
209 |
height=448,
|
210 |
autoplay=True,
|
211 |
)
|
212 |
-
|
213 |
def read_video(video):
|
214 |
return video
|
215 |
|
|
|
176 |
Moore-AnimateAnyone Gradio Demo
|
177 |
</h1>
|
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")
|
189 |
|
190 |
+
height_slider = gr.Slider(
|
191 |
+
label="Height", minimum=512, maximum=960, value=512, step=64
|
192 |
+
)
|
193 |
+
length_slider = gr.Slider(
|
194 |
+
label="Video Length", minimum=24, maximum=120, value=24, step=24
|
195 |
+
)
|
196 |
+
with gr.Row():
|
197 |
+
seed_textbox = gr.Textbox(label="Seed", value=-1)
|
198 |
+
|
199 |
+
submit = gr.Button("Animate")
|
200 |
|
201 |
|
202 |
+
# Call the ui function to run the demo
|
203 |
|
204 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
205 |
animation = gr.Video(
|
206 |
format="mp4",
|
207 |
label="Animation Results",
|
208 |
height=448,
|
209 |
autoplay=True,
|
210 |
)
|
211 |
+
ui()
|
212 |
def read_video(video):
|
213 |
return video
|
214 |
|