MeYourHint commited on
Commit
0419c26
·
1 Parent(s): 46a874d
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -259,10 +259,10 @@ def generate_component(generate_function, text, motion_len='0', postprocess='IK'
259
  return [None for _ in range(1)]
260
  # uid = random.randrange(99999)
261
  motion_len = max(0, min(int(float(motion_len) * 20), 196))
262
- try:
263
- motion_len = max(0, min(int(float(motion_len) * 20), 196))
264
- except:
265
- motion_len = 0
266
  use_ik = postprocess == 'IK'
267
  datas = generate_function(text, uid, motion_len, use_ik)
268
  htmls = [get_video_html(data, idx) for idx, data in enumerate(datas)]
 
259
  return [None for _ in range(1)]
260
  # uid = random.randrange(99999)
261
  motion_len = max(0, min(int(float(motion_len) * 20), 196))
262
+ # try:
263
+ # motion_len = max(0, min(int(float(motion_len) * 20), 196))
264
+ # except:
265
+ # motion_len = 0
266
  use_ik = postprocess == 'IK'
267
  datas = generate_function(text, uid, motion_len, use_ik)
268
  htmls = [get_video_html(data, idx) for idx, data in enumerate(datas)]