Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def get_step_info(step_number):
|
|
53 |
},
|
54 |
4: {
|
55 |
"Name": "Bead Set",
|
56 |
-
"Standard Time": "8 seconds"
|
57 |
"Video_substeps_expected": {
|
58 |
"0-3 seconds": "Bead is positioned and pre-set.",
|
59 |
"3-6 seconds": "Machine secures the bead in place.",
|
@@ -91,17 +91,17 @@ def get_step_info(step_number):
|
|
91 |
"Standard Time": "7 seconds",
|
92 |
"Video_substeps_expected": {
|
93 |
"0-3 seconds": "Technician unloads(removes) carcass(tire) from the machine."
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
|
|
98 |
}
|
99 |
}
|
100 |
|
101 |
return step_details.get(step_number, {"Error": "Invalid step number. Please provide a valid step number."})
|
102 |
|
103 |
|
104 |
-
|
105 |
def load_video(video_data, strategy='chat'):
|
106 |
"""Loads and processes video data into a format suitable for model input."""
|
107 |
bridge.set_bridge('torch')
|
|
|
53 |
},
|
54 |
4: {
|
55 |
"Name": "Bead Set",
|
56 |
+
"Standard Time": "8 seconds",
|
57 |
"Video_substeps_expected": {
|
58 |
"0-3 seconds": "Bead is positioned and pre-set.",
|
59 |
"3-6 seconds": "Machine secures the bead in place.",
|
|
|
91 |
"Standard Time": "7 seconds",
|
92 |
"Video_substeps_expected": {
|
93 |
"0-3 seconds": "Technician unloads(removes) carcass(tire) from the machine."
|
94 |
+
},
|
95 |
+
"Potential_Delay_reasons": [
|
96 |
+
"Person not available in time(in 3 sec) to remove carcass.",
|
97 |
+
"Person is doing bead(ring) insertion before carcass unload causing unload to be delayed by more than 3 sec"
|
98 |
+
]
|
99 |
}
|
100 |
}
|
101 |
|
102 |
return step_details.get(step_number, {"Error": "Invalid step number. Please provide a valid step number."})
|
103 |
|
104 |
|
|
|
105 |
def load_video(video_data, strategy='chat'):
|
106 |
"""Loads and processes video data into a format suitable for model input."""
|
107 |
bridge.set_bridge('torch')
|