Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -152,7 +152,7 @@ def seek():
|
|
| 152 |
else:
|
| 153 |
# Case 2: Vehicle number is in plain text like "Vehicle 3417 Load"
|
| 154 |
text = p_tag.get_text()
|
| 155 |
-
match = re.search(r'Vehicle
|
| 156 |
if match:
|
| 157 |
vehicle_data['vehicle_number'] = match.group(1)
|
| 158 |
|
|
|
|
| 152 |
else:
|
| 153 |
# Case 2: Vehicle number is in plain text like "Vehicle 3417 Load"
|
| 154 |
text = p_tag.get_text()
|
| 155 |
+
match = re.search(r'Vehicle\s+(\d+)', text)
|
| 156 |
if match:
|
| 157 |
vehicle_data['vehicle_number'] = match.group(1)
|
| 158 |
|