Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -223,22 +223,22 @@ def bar_length(data_id):
|
|
| 223 |
return 4
|
| 224 |
|
| 225 |
with gr.Blocks() as demo:
|
| 226 |
-
gr.Markdown("###
|
| 227 |
all_videos = get_all_videos()
|
| 228 |
|
| 229 |
-
with gr.Row():
|
| 230 |
-
|
| 231 |
-
label=f"
|
| 232 |
choices=all_videos,
|
| 233 |
multiselect=False,
|
| 234 |
allow_custom_value=True,
|
| 235 |
-
scale=5,
|
| 236 |
)
|
| 237 |
-
|
| 238 |
video_output = gr.Video(label="Selected Motion")
|
| 239 |
|
| 240 |
-
change_prompt_textbox = gr.Textbox(visible=True, label="Write your
|
| 241 |
-
inference_button = gr.Button("Start
|
| 242 |
output_file = gr.Video(label="Edited Motion (truncated to 6sec due to the constraint of computational resources)")
|
| 243 |
|
| 244 |
show_video_button.click(
|
|
|
|
| 223 |
return 4
|
| 224 |
|
| 225 |
with gr.Blocks() as demo:
|
| 226 |
+
gr.Markdown("### Edit a motion with your own instruction")
|
| 227 |
all_videos = get_all_videos()
|
| 228 |
|
| 229 |
+
#with gr.Row():
|
| 230 |
+
data_id_input = gr.Dropdown(
|
| 231 |
+
label=f"Step 1: Select the motion to edit({len(all_videos)} in total)",
|
| 232 |
choices=all_videos,
|
| 233 |
multiselect=False,
|
| 234 |
allow_custom_value=True,
|
| 235 |
+
#scale=5,
|
| 236 |
)
|
| 237 |
+
show_video_button = gr.Button("Step 2: Display the selected motion")
|
| 238 |
video_output = gr.Video(label="Selected Motion")
|
| 239 |
|
| 240 |
+
change_prompt_textbox = gr.Textbox(visible=True, label="Step 3: Write your editing instruction here")
|
| 241 |
+
inference_button = gr.Button("Step4: Start inference")
|
| 242 |
output_file = gr.Video(label="Edited Motion (truncated to 6sec due to the constraint of computational resources)")
|
| 243 |
|
| 244 |
show_video_button.click(
|