Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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.
|
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):
|