Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -109,7 +109,7 @@ class Pipeline:
|
|
109 |
text = ""
|
110 |
with torch.autocast(self.device):
|
111 |
for start, stop, frames in iter_clips(video_path):
|
112 |
-
text += f"{'-'*30} Predictions From: {start:
|
113 |
frames = self.val_transform(frames).unsqueeze(0)
|
114 |
if self.device == 'cuda':
|
115 |
frames = frames.to(self.device).half()
|
|
|
109 |
text = ""
|
110 |
with torch.autocast(self.device):
|
111 |
for start, stop, frames in iter_clips(video_path):
|
112 |
+
text += f"{'-'*30} Predictions From: {start:2.3f}-{stop:2.3f} seconds {'-'*30}\n"
|
113 |
frames = self.val_transform(frames).unsqueeze(0)
|
114 |
if self.device == 'cuda':
|
115 |
frames = frames.to(self.device).half()
|