Yzy00518 commited on
Commit
55790c5
·
verified ·
1 Parent(s): 3b11beb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
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("### Select a Raw Motion")
227
  all_videos = get_all_videos()
228
 
229
- with gr.Row():
230
- data_id_input = gr.Dropdown(
231
- label=f"Motions can be selected({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("Select & Display Motion (step1)", scale=2)
238
  video_output = gr.Video(label="Selected Motion")
239
 
240
- change_prompt_textbox = gr.Textbox(visible=True, label="Write your edit instruction here: (step2)")
241
- inference_button = gr.Button("Start Inference (step3)")
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(