Spaces:
Sleeping
Sleeping
VishalD1234
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -10,6 +10,17 @@ MODEL_PATH = "THUDM/cogvlm2-llama3-caption"
|
|
10 |
DEVICE = 'cuda' if torch.cuda.is_available() else 'cpu'
|
11 |
TORCH_TYPE = torch.bfloat16 if torch.cuda.is_available() and torch.cuda.get_device_capability()[0] >= 8 else torch.float16
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
def get_step_info(step_number):
|
15 |
"""Returns detailed information about a manufacturing step."""
|
|
|
10 |
DEVICE = 'cuda' if torch.cuda.is_available() else 'cpu'
|
11 |
TORCH_TYPE = torch.bfloat16 if torch.cuda.is_available() and torch.cuda.get_device_capability()[0] >= 8 else torch.float16
|
12 |
|
13 |
+
# Delay Reasons for Each Manufacturing Step
|
14 |
+
DELAY_REASONS = {
|
15 |
+
"Step 1": ["Delay in Bead Insertion", "Lack of raw material"],
|
16 |
+
"Step 2": ["Inner Liner Adjustment by Technician", "Person rebuilding defective Tire Sections"],
|
17 |
+
"Step 3": ["Manual Adjustment in Ply1 apply", "Technician repairing defective Tire Sections"],
|
18 |
+
"Step 4": ["Delay in Bead set", "Lack of raw material"],
|
19 |
+
"Step 5": ["Delay in Turnup", "Lack of raw material"],
|
20 |
+
"Step 6": ["Person Repairing sidewall", "Person rebuilding defective Tire Sections"],
|
21 |
+
"Step 7": ["Delay in sidewall stitching", "Lack of raw material"],
|
22 |
+
"Step 8": ["No person available to load Carcass", "No person available to collect tire"]
|
23 |
+
}
|
24 |
|
25 |
def get_step_info(step_number):
|
26 |
"""Returns detailed information about a manufacturing step."""
|