ankandrew commited on
Commit
6674c8e
·
verified ·
1 Parent(s): 61fa7d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -196,7 +196,7 @@ class VideoHighlightDetector:
196
  subprocess.run(cmd, check=True)
197
 
198
  def _generate(self, **kwargs):
199
- with autocast(device_type="cuda", dtype=torch.float16):
200
  return self.model.generate(**kwargs)
201
 
202
  def create_ui(examples_path: str, model_path: str):
 
196
  subprocess.run(cmd, check=True)
197
 
198
  def _generate(self, **kwargs):
199
+ with autocast(device_type="cuda", dtype=torch.bfloat16):
200
  return self.model.generate(**kwargs)
201
 
202
  def create_ui(examples_path: str, model_path: str):