Spaces:
Runtime error
Runtime error
jhj0517
commited on
Commit
·
19b4f44
1
Parent(s):
da4dd26
update header and set max duration for input video
Browse files
app.py
CHANGED
|
@@ -35,7 +35,7 @@ class App:
|
|
| 35 |
with gr.Row():
|
| 36 |
with gr.Column(scale=3):
|
| 37 |
img_pose_input = gr.Image(label="Input Image", type="filepath", scale=5)
|
| 38 |
-
vid_dance_input = gr.Video(label="Input Dance Video", scale=5)
|
| 39 |
with gr.Column(scale=3):
|
| 40 |
vid_dance_output = gr.Video(label="Aligned Pose Output", scale=5)
|
| 41 |
vid_dance_output_demo = gr.Video(label="Aligned Pose Output Demo", scale=5)
|
|
@@ -58,7 +58,7 @@ class App:
|
|
| 58 |
with gr.Row():
|
| 59 |
with gr.Column(scale=3):
|
| 60 |
img_musepose_input = gr.Image(label="Input Image", type="filepath", scale=5)
|
| 61 |
-
vid_pose_input = gr.Video(label="Input Aligned Pose Video", scale=5)
|
| 62 |
with gr.Column(scale=3):
|
| 63 |
vid_output = gr.Video(label="MusePose Output", scale=5)
|
| 64 |
vid_output_demo = gr.Video(label="MusePose Output Demo", scale=5)
|
|
@@ -100,7 +100,14 @@ class App:
|
|
| 100 |
def header():
|
| 101 |
header = gr.HTML(
|
| 102 |
"""
|
| 103 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
"""
|
| 105 |
)
|
| 106 |
return header
|
|
|
|
| 35 |
with gr.Row():
|
| 36 |
with gr.Column(scale=3):
|
| 37 |
img_pose_input = gr.Image(label="Input Image", type="filepath", scale=5)
|
| 38 |
+
vid_dance_input = gr.Video(label="Input Dance Video", max_length=4, scale=5)
|
| 39 |
with gr.Column(scale=3):
|
| 40 |
vid_dance_output = gr.Video(label="Aligned Pose Output", scale=5)
|
| 41 |
vid_dance_output_demo = gr.Video(label="Aligned Pose Output Demo", scale=5)
|
|
|
|
| 58 |
with gr.Row():
|
| 59 |
with gr.Column(scale=3):
|
| 60 |
img_musepose_input = gr.Image(label="Input Image", type="filepath", scale=5)
|
| 61 |
+
vid_pose_input = gr.Video(label="Input Aligned Pose Video", max_length=4, scale=5)
|
| 62 |
with gr.Column(scale=3):
|
| 63 |
vid_output = gr.Video(label="MusePose Output", scale=5)
|
| 64 |
vid_output_demo = gr.Video(label="MusePose Output Demo", scale=5)
|
|
|
|
| 100 |
def header():
|
| 101 |
header = gr.HTML(
|
| 102 |
"""
|
| 103 |
+
<h1 style="font-size: 23px;">
|
| 104 |
+
<a href="https://github.com/jhj0517/MusePose-WebUI" target="_blank">MusePose WebUI</a>
|
| 105 |
+
</h1>
|
| 106 |
+
|
| 107 |
+
<p style="font-size: 18px;">
|
| 108 |
+
<strong>Note</strong>: This space only allows video input up to <strong>3 seconds</strong> because ZeroGPU limits the function runtime to 2 minutes. <br>
|
| 109 |
+
If you want longer video inputs, you have to run it locally. Click the link above and follow the README to try it locally.
|
| 110 |
+
</p>
|
| 111 |
"""
|
| 112 |
)
|
| 113 |
return header
|