Update handler.py
Browse files- handler.py +2 -2
handler.py
CHANGED
@@ -121,7 +121,7 @@ class EndpointHandler:
|
|
121 |
guidance_scale=guidance_scale,
|
122 |
num_inference_steps=num_inference_steps,
|
123 |
output_type="pt"
|
124 |
-
).
|
125 |
else:
|
126 |
# Generate video from text only
|
127 |
output = self.text_to_video(
|
@@ -130,7 +130,7 @@ class EndpointHandler:
|
|
130 |
guidance_scale=guidance_scale,
|
131 |
num_inference_steps=num_inference_steps,
|
132 |
output_type="pt"
|
133 |
-
).
|
134 |
|
135 |
# Convert frames to video file
|
136 |
video_content = self._create_video_file(output, fps=fps)
|
|
|
121 |
guidance_scale=guidance_scale,
|
122 |
num_inference_steps=num_inference_steps,
|
123 |
output_type="pt"
|
124 |
+
).frames[0]
|
125 |
else:
|
126 |
# Generate video from text only
|
127 |
output = self.text_to_video(
|
|
|
130 |
guidance_scale=guidance_scale,
|
131 |
num_inference_steps=num_inference_steps,
|
132 |
output_type="pt"
|
133 |
+
).frames[0]
|
134 |
|
135 |
# Convert frames to video file
|
136 |
video_content = self._create_video_file(output, fps=fps)
|