JoPmt commited on
Commit
491938d
1 Parent(s): 6bd23a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -145,9 +145,9 @@ def plex(fpath, text, neg_prompt, modil, one, two, three, four, five):
145
  return None
146
  b = 0
147
  if total_frames > max_frames:
148
- max_frames = int(max_frames - 1)
149
  if total_frames < max_frames:
150
- max_frames = int(total_frames - 1)
151
  for b in range(int(max_frames)):
152
  frame = frames[b]
153
  original = load_image(Image.fromarray(frame))
 
145
  return None
146
  b = 0
147
  if total_frames > max_frames:
148
+ max_frames = int(max_frames)
149
  if total_frames < max_frames:
150
+ max_frames = int(total_frames)
151
  for b in range(int(max_frames)):
152
  frame = frames[b]
153
  original = load_image(Image.fromarray(frame))