mfarre HF staff commited on
Commit
3dd7eae
·
1 Parent(s): fbe9168
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -53,7 +53,7 @@ class VideoHighlightDetector:
53
  self.model = AutoModelForVision2Seq.from_pretrained(
54
  model_path,
55
  torch_dtype=torch.bfloat16,
56
- attn_implementation="flash_attention_2"
57
  ).to(device)
58
 
59
  def analyze_video_content(self, video_path: str) -> str:
 
53
  self.model = AutoModelForVision2Seq.from_pretrained(
54
  model_path,
55
  torch_dtype=torch.bfloat16,
56
+ _attn_implementation="flash_attention_2"
57
  ).to(device)
58
 
59
  def analyze_video_content(self, video_path: str) -> str: