Update app.py
Browse files
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
|
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))
|
|
|
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))
|