Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -217,16 +217,18 @@ with gr.Blocks() as demo:
|
|
| 217 |
|
| 218 |
with gr.Row():
|
| 219 |
data_id_input = gr.Dropdown(
|
| 220 |
-
label=f"
|
| 221 |
choices=all_videos,
|
| 222 |
multiselect=False,
|
| 223 |
-
allow_custom_value=True
|
| 224 |
-
|
|
|
|
|
|
|
| 225 |
video_output = gr.Video(label="Selected Motion")
|
| 226 |
|
| 227 |
change_prompt_textbox = gr.Textbox(visible=True, label="Text Instruction")
|
| 228 |
-
inference_button = gr.Button("Inference")
|
| 229 |
-
output_file = gr.Video(label="Generated Video(truncated to
|
| 230 |
|
| 231 |
show_video_button.click(
|
| 232 |
fn=select_and_show,
|
|
|
|
| 217 |
|
| 218 |
with gr.Row():
|
| 219 |
data_id_input = gr.Dropdown(
|
| 220 |
+
label=f"motions can be selected({len(all_videos)} in total)",
|
| 221 |
choices=all_videos,
|
| 222 |
multiselect=False,
|
| 223 |
+
allow_custom_value=True,
|
| 224 |
+
scale=2,
|
| 225 |
+
)
|
| 226 |
+
show_video_button = gr.Button("Select & Display Motion", scale=1)
|
| 227 |
video_output = gr.Video(label="Selected Motion")
|
| 228 |
|
| 229 |
change_prompt_textbox = gr.Textbox(visible=True, label="Text Instruction")
|
| 230 |
+
inference_button = gr.Button("Start Inference")
|
| 231 |
+
output_file = gr.Video(label="Generated Video(truncated to 6sec due to the constraint of computational resources)")
|
| 232 |
|
| 233 |
show_video_button.click(
|
| 234 |
fn=select_and_show,
|