ccclemenfff commited on
Commit
95022b5
·
1 Parent(s): 4832cce
Files changed (1) hide show
  1. handler.py +2 -2
handler.py CHANGED
@@ -28,7 +28,7 @@ class EndpointHandler:
28
  self.gen_config = GenerationConfig(
29
  bos_token_id=1,
30
  do_sample=False,
31
- temperature=0.7,
32
  max_new_tokens=1024
33
  )
34
 
@@ -102,7 +102,7 @@ class EndpointHandler:
102
  ])
103
  return transform(image)
104
 
105
- def _load_video(self, video_bytes: bytes, num_segments=16) -> torch.Tensor:
106
  with tempfile.NamedTemporaryFile(suffix=".mp4", delete=False) as tmpfile:
107
  tmpfile.write(video_bytes)
108
  video_path = tmpfile.name
 
28
  self.gen_config = GenerationConfig(
29
  bos_token_id=1,
30
  do_sample=False,
31
+ # temperature=0.7,
32
  max_new_tokens=1024
33
  )
34
 
 
102
  ])
103
  return transform(image)
104
 
105
+ def _load_video(self, video_bytes: bytes, num_segments=8) -> torch.Tensor:
106
  with tempfile.NamedTemporaryFile(suffix=".mp4", delete=False) as tmpfile:
107
  tmpfile.write(video_bytes)
108
  video_path = tmpfile.name