Anonymous commited on
Commit
c5f358a
1 Parent(s): d24f7b8

add spaces

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -29,6 +29,7 @@ ckpt_path_512 = "checkpoints/base_512_v2/model.ckpt"
29
  if not os.path.exists(ckpt_path_512):
30
  os.makedirs(ckpt_dir_512, exist_ok=True)
31
  hf_hub_download(repo_id="VideoCrafter/VideoCrafter2", filename="model.ckpt", local_dir=ckpt_dir_512, force_download=True)
 
32
 
33
  def check_move(trajectory, video_length=16):
34
  traj_len = len(trajectory)
@@ -574,8 +575,8 @@ with gr.Blocks(css=css) as demo:
574
 
575
  with gr.Group():
576
  with gr.Row():
577
- prompt_in = gr.Textbox(label="Prompt", placeholder="A corgi running on the grassland on the grassland.", scale = 3)
578
- target_indices = gr.Textbox(label="Target Indices (1 for the first word, necessary!)", placeholder="1,2", scale = 1)
579
 
580
  with gr.Row():
581
  radio_mode = gr.Radio(label='Trajectory Mode', choices = ['demo', 'diy', 'ori'], scale = 1)
 
29
  if not os.path.exists(ckpt_path_512):
30
  os.makedirs(ckpt_dir_512, exist_ok=True)
31
  hf_hub_download(repo_id="VideoCrafter/VideoCrafter2", filename="model.ckpt", local_dir=ckpt_dir_512, force_download=True)
32
+ print('Model Loaded.')
33
 
34
  def check_move(trajectory, video_length=16):
35
  traj_len = len(trajectory)
 
575
 
576
  with gr.Group():
577
  with gr.Row():
578
+ prompt_in = gr.Textbox(label="Prompt", placeholder="A corgi running on the grassland on the grassland.", scale = 5)
579
+ target_indices = gr.Textbox(label="Target Indices (1 for the first word, necessary!)", placeholder="1,2", scale = 2)
580
 
581
  with gr.Row():
582
  radio_mode = gr.Radio(label='Trajectory Mode', choices = ['demo', 'diy', 'ori'], scale = 1)