Yzy00518 commited on
Commit
0cf7a89
·
verified ·
1 Parent(s): 6d1f1d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
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"motion can be selected({len(all_videos)} in total)",
221
  choices=all_videos,
222
  multiselect=False,
223
- allow_custom_value=True)
224
- show_video_button = gr.Button("Display Motion")
 
 
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 5sec due to the constraint of resource)")
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,