fbnnb commited on
Commit
70bb8bf
·
verified ·
1 Parent(s): 54876c2

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +2 -2
gradio_app.py CHANGED
@@ -193,9 +193,9 @@ def get_image(image, prompt, steps=50, cfg_scale=7.5, eta=1.0, fs=3, seed=123, i
193
  cn_videos = torch.cat(cn_videos, dim=2)
194
  if cn_videos.shape[2] > frames:
195
  idxs = []
196
- for i in range(y):
197
  index = int((i + 0.5) * cn.shape[2] / frames)
198
- idxs.append(min(index, x - 1))
199
  cn_videos = cn_videos[:, :, idxs, :, :]
200
  print("cn_videos.shape after slicing", cn_videos.shape)
201
  model_list = []
 
193
  cn_videos = torch.cat(cn_videos, dim=2)
194
  if cn_videos.shape[2] > frames:
195
  idxs = []
196
+ for i in range(frames):
197
  index = int((i + 0.5) * cn.shape[2] / frames)
198
+ idxs.append(min(index, cn_videos.shape[2] - 1))
199
  cn_videos = cn_videos[:, :, idxs, :, :]
200
  print("cn_videos.shape after slicing", cn_videos.shape)
201
  model_list = []