Update app.py
Browse files
app.py
CHANGED
|
@@ -65,6 +65,27 @@ def user_report():
|
|
| 65 |
prior_maintainence=1
|
| 66 |
else:
|
| 67 |
prior_maintainence=0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
#Customer Data
|
| 69 |
user_data = user_report()
|
| 70 |
st.header("Component Details")
|
|
|
|
| 65 |
prior_maintainence=1
|
| 66 |
else:
|
| 67 |
prior_maintainence=0
|
| 68 |
+
|
| 69 |
+
user_report_data = {
|
| 70 |
+
'Manufacturer':manufacturer,
|
| 71 |
+
'Component_Age':component_age,
|
| 72 |
+
'Total Operating Hours':total_operating_hours,
|
| 73 |
+
'Usage Intensity (hours/day)':usage_intensity,
|
| 74 |
+
'Last Maintenance Type': last_maintance_type,
|
| 75 |
+
'Previous number of repairs':previous_number_of_repairs,
|
| 76 |
+
'Operating Temperature':operating_temperature,
|
| 77 |
+
'Humidity': humidity,
|
| 78 |
+
'Vibration Level':Vibration_Level,
|
| 79 |
+
'Pressure':Pressure,
|
| 80 |
+
'Power Input Voltage (V)':Power_Input_Voltage,
|
| 81 |
+
'repair type':repair_type ,
|
| 82 |
+
'total number of inspection':number_of_inspection,
|
| 83 |
+
'No. of Inspections in Last 6 Months':number_of_inspection_6months,
|
| 84 |
+
'Prior Maintenance':prior_maintainence
|
| 85 |
+
|
| 86 |
+
}
|
| 87 |
+
report_data = pd.DataFrame(user_report_data, index=[0])
|
| 88 |
+
return report_data
|
| 89 |
#Customer Data
|
| 90 |
user_data = user_report()
|
| 91 |
st.header("Component Details")
|