Spaces:
Running
Running
Commit
·
319aa53
1
Parent(s):
afec801
Minor
Browse files
app.py
CHANGED
|
@@ -98,7 +98,8 @@ EXAMPLES = [
|
|
| 98 |
CSS = """
|
| 99 |
.generate_video {
|
| 100 |
position: relative;
|
| 101 |
-
margin:
|
|
|
|
| 102 |
box-shadow: var(--block-shadow);
|
| 103 |
border-width: var(--block-border-width);
|
| 104 |
border-color: #000000;
|
|
@@ -242,11 +243,12 @@ def get_video_html(data, video_id, width=700, height=700):
|
|
| 242 |
# <div class="contour_video" style="position: absolute; padding: 10px;">
|
| 243 |
# width="{width}" height="{height}"
|
| 244 |
video_html = f"""
|
| 245 |
-
<video class="generate_video" width="{width}" height="{height}" preload="auto" muted playsinline onpause="this.load()"
|
| 246 |
autoplay loop disablepictureinpicture id="{video_id}">
|
| 247 |
<source src="file/{url}" type="video/mp4">
|
| 248 |
Your browser does not support the video tag.
|
| 249 |
</video>
|
|
|
|
| 250 |
"""
|
| 251 |
return video_html
|
| 252 |
|
|
@@ -295,14 +297,13 @@ with gr.Blocks(css=CSS, theme=theme) as demo:
|
|
| 295 |
value="IK",
|
| 296 |
info="Use basic inverse kinematic (IK) for foot contact locking",
|
| 297 |
)
|
| 298 |
-
|
| 299 |
-
|
|
|
|
| 300 |
f"""
|
| 301 |
-
|
| 302 |
"""
|
| 303 |
)
|
| 304 |
-
gen_btn = gr.Button("Generate", variant="primary")
|
| 305 |
-
clear = gr.Button("Clear", variant="secondary")
|
| 306 |
|
| 307 |
with gr.Column(scale=2):
|
| 308 |
|
|
|
|
| 98 |
CSS = """
|
| 99 |
.generate_video {
|
| 100 |
position: relative;
|
| 101 |
+
margin-left: auto;
|
| 102 |
+
margin-right: auto;
|
| 103 |
box-shadow: var(--block-shadow);
|
| 104 |
border-width: var(--block-border-width);
|
| 105 |
border-color: #000000;
|
|
|
|
| 243 |
# <div class="contour_video" style="position: absolute; padding: 10px;">
|
| 244 |
# width="{width}" height="{height}"
|
| 245 |
video_html = f"""
|
| 246 |
+
<video class="generate_video" width="{width}" height="{height}" style="center" preload="auto" muted playsinline onpause="this.load()"
|
| 247 |
autoplay loop disablepictureinpicture id="{video_id}">
|
| 248 |
<source src="file/{url}" type="video/mp4">
|
| 249 |
Your browser does not support the video tag.
|
| 250 |
</video>
|
| 251 |
+
<a href="file/{pjoin(animation_path, "sample_repeat0.bvh")}" download="sample.bvh"><b>BVH Download</b></a>
|
| 252 |
"""
|
| 253 |
return video_html
|
| 254 |
|
|
|
|
| 297 |
value="IK",
|
| 298 |
info="Use basic inverse kinematic (IK) for foot contact locking",
|
| 299 |
)
|
| 300 |
+
gen_btn = gr.Button("Generate", variant="primary")
|
| 301 |
+
clear = gr.Button("Clear", variant="secondary")
|
| 302 |
+
gr.Markdown(
|
| 303 |
f"""
|
| 304 |
+
|
| 305 |
"""
|
| 306 |
)
|
|
|
|
|
|
|
| 307 |
|
| 308 |
with gr.Column(scale=2):
|
| 309 |
|