Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,20 +13,20 @@ TORCH_TYPE = torch.bfloat16 if torch.cuda.is_available() and torch.cuda.get_devi
|
|
13 |
|
14 |
|
15 |
DELAY_REASONS = {
|
16 |
-
"Step 1": ["
|
17 |
-
"Step 2": ["
|
18 |
-
"Step 3": ["
|
19 |
-
"Step 4": ["
|
20 |
-
"Step 5": ["
|
21 |
-
"Step 6": ["Person
|
22 |
-
"Step 7": ["
|
23 |
-
"Step 8": ["No person available to
|
24 |
}
|
25 |
|
26 |
def load_video(video_data, strategy='chat'):
|
27 |
"""Loads and processes video data into a format suitable for model input."""
|
28 |
bridge.set_bridge('torch')
|
29 |
-
num_frames =
|
30 |
|
31 |
if isinstance(video_data, str):
|
32 |
decord_vr = VideoReader(video_data, ctx=cpu(0))
|
|
|
13 |
|
14 |
|
15 |
DELAY_REASONS = {
|
16 |
+
"Step 1": ["Delay in Bead Insertion"],
|
17 |
+
"Step 2": ["Inner Liner Adjustment by Technician"],
|
18 |
+
"Step 3": ["Manual Adjustment in Ply1 apply"],
|
19 |
+
"Step 4": ["Delay in Bead set"],
|
20 |
+
"Step 5": ["Delay in Turnup"],
|
21 |
+
"Step 6": ["Person repairing sidewall"],
|
22 |
+
"Step 7": ["Delay in sidewall stitching"],
|
23 |
+
"Step 8": ["No person available to load Carcass"]
|
24 |
}
|
25 |
|
26 |
def load_video(video_data, strategy='chat'):
|
27 |
"""Loads and processes video data into a format suitable for model input."""
|
28 |
bridge.set_bridge('torch')
|
29 |
+
num_frames = 36
|
30 |
|
31 |
if isinstance(video_data, str):
|
32 |
decord_vr = VideoReader(video_data, ctx=cpu(0))
|