Update app.py
Browse files
app.py
CHANGED
@@ -62,11 +62,7 @@ def generate_and_export_animation(prompt):
|
|
62 |
processed_frames = []
|
63 |
for frame_tensor in output.frames:
|
64 |
# Convert frame tensor to numpy array
|
65 |
-
frame_numpy = frame_tensor.
|
66 |
-
|
67 |
-
# # Ensure frame has the correct shape (H, W, C)
|
68 |
-
# if len(frame_numpy.shape) == 4:
|
69 |
-
frame_numpy = frame_numpy.squeeze(0)
|
70 |
|
71 |
# Append processed frame to the list
|
72 |
processed_frames.append(frame_numpy)
|
|
|
62 |
processed_frames = []
|
63 |
for frame_tensor in output.frames:
|
64 |
# Convert frame tensor to numpy array
|
65 |
+
frame_numpy = frame_tensor.numpy()
|
|
|
|
|
|
|
|
|
66 |
|
67 |
# Append processed frame to the list
|
68 |
processed_frames.append(frame_numpy)
|