faiimea commited on
Commit
aadbdeb
1 Parent(s): eaf5641

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -3
app.py CHANGED
@@ -131,11 +131,22 @@ def handle_motion_generation(npy1,npy2):
131
 
132
  # 创建 Gradio 界面并展示视频而不是图片
133
  with gr.Blocks() as demo:
134
- gr.Markdown("Upload two `.npy` files to generate motion and visualize the animation.")
 
 
 
 
 
 
 
 
 
 
 
135
 
136
  with gr.Row():
137
- file1 = gr.File(file_types=[".npy"], label="Upload first .npy file")
138
- file2 = gr.File(file_types=[".npy"], label="Upload second .npy file")
139
 
140
  with gr.Row():
141
  generate_btn = gr.Button("Generate Animation")
 
131
 
132
  # 创建 Gradio 界面并展示视频而不是图片
133
  with gr.Blocks() as demo:
134
+ gr.Markdown(
135
+ '''
136
+ This space displays how to perform Transmomo(Motion Retargeting):
137
+ ## How to use this Space?
138
+ - Upload a npy, as the motion source of generated video.
139
+ - Upload a npy, as the structure source of generated video.
140
+ - You will receive the result of the Motion Retargeting after 1-2 minutes.
141
+ - Click the 'clear' button to clear all the files.
142
+ ## Examples
143
+ - You can get the test examples from our [Roop Dataset Repo.](https://huggingface.co/datasets/SJTU-TES/momo)
144
+ '''
145
+ )
146
 
147
  with gr.Row():
148
+ file1 = gr.File(file_types=[".npy"], label="Upload Motion Source .npy file")
149
+ file2 = gr.File(file_types=[".npy"], label="Upload Structure Source .npy file")
150
 
151
  with gr.Row():
152
  generate_btn = gr.Button("Generate Animation")