MeYourHint commited on
Commit
3dddffd
·
1 Parent(s): 1d38a79
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -219,6 +219,7 @@ def generate(
219
  ruid = random.randrange(99999)
220
  for k, (caption, joint_data) in enumerate(zip(captions, data)):
221
  animation_path = pjoin(cached_dir, f'{uid}')
 
222
  os.makedirs(animation_path, exist_ok=True)
223
  joint_data = joint_data[:m_length[k]]
224
  joint = recover_from_ric(torch.from_numpy(joint_data).float(), 22).numpy()
 
219
  ruid = random.randrange(99999)
220
  for k, (caption, joint_data) in enumerate(zip(captions, data)):
221
  animation_path = pjoin(cached_dir, f'{uid}')
222
+ shutil.rmtree(animation_path)
223
  os.makedirs(animation_path, exist_ok=True)
224
  joint_data = joint_data[:m_length[k]]
225
  joint = recover_from_ric(torch.from_numpy(joint_data).float(), 22).numpy()