EvanTHU commited on
Commit
0f38a1c
·
verified ·
1 Parent(s): e8d5248

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -143,8 +143,8 @@ CSS = """
143
  def generate_video_from_text(text, opt, pipeline):
144
  width = 500
145
  height = 500
146
- texts = [text]
147
- motion_lens = [opt.motion_length * opt.fps]
148
 
149
  save_dir = 'temp/'
150
  filename = generate_md5(str(time.time())) + ".gif"
@@ -186,7 +186,7 @@ def generate_video_from_text(text, opt, pipeline):
186
 
187
  samples.append(motion)
188
 
189
- i = 0
190
  title = texts[i]
191
  motion = samples[i]
192
  kinematic_tree = paramUtil.t2m_kinematic_chain if (opt.dataset_name == 't2m') else paramUtil.kit_kinematic_chain
 
143
  def generate_video_from_text(text, opt, pipeline):
144
  width = 500
145
  height = 500
146
+ texts = [text, text]
147
+ motion_lens = [opt.motion_length * opt.fps, opt.motion_length * opt.fps]
148
 
149
  save_dir = 'temp/'
150
  filename = generate_md5(str(time.time())) + ".gif"
 
186
 
187
  samples.append(motion)
188
 
189
+ i = 1
190
  title = texts[i]
191
  motion = samples[i]
192
  kinematic_tree = paramUtil.t2m_kinematic_chain if (opt.dataset_name == 't2m') else paramUtil.kit_kinematic_chain