jbilcke-hf HF staff commited on
Commit
72c8076
·
verified ·
1 Parent(s): e9d66cc

Update handler.py

Browse files
Files changed (1) hide show
  1. 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
- ).images
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
- ).images
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)