VishalD1234 commited on
Commit
5311cf8
·
verified ·
1 Parent(s): 612e469

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
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": ["No raw material available", "Person repatching the tire"],
17
- "Step 2": ["Person repatching the tire", "Lack of raw material"],
18
- "Step 3": ["Person repatching the tire", "Lack of raw material"],
19
- "Step 4": ["Person repatching the tire", "Lack of raw material"],
20
- "Step 5": ["Person repatching the tire", "Lack of raw material"],
21
- "Step 6": ["Person repatching the tire", "Lack of raw material"],
22
- "Step 7": ["Person repatching the tire", "Lack of raw material"],
23
- "Step 8": ["No person available to collect tire", "Person repatching the tire"]
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 = 48
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))