saritha5 commited on
Commit
15f34c8
·
1 Parent(s): 95b9724

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -58,14 +58,14 @@ def user_report():
58
  Issue_category=3
59
  else:
60
  Issue_category=2
61
- Snag Severity = st.sidebar.selectbox("Snag Severity",
62
  ("Low", "Medium","High" ))
63
- if Snag Severity =='Low':
64
- Snag Severity=1
65
- elif Snag Severity=="Medium":
66
- Snag Severity =2
67
  else:
68
- Snag Severity=0
69
  Customer= st.sidebar.selectbox("Customer",
70
  ("IAF", "ARMY","NAVY" ))
71
  if Customer =='IAF':
@@ -99,7 +99,7 @@ def user_report():
99
  'Manufacturer':manufacturer,
100
  'Component_Age':component_age,
101
  'Issue_category':Issue_category,
102
- 'Snag Severity': Snag Severity,
103
  'Customer':Customer,
104
  'Technician Skill level':Technician_Skill_level,
105
  'Prior Maintenance': prior_maintainence,
 
58
  Issue_category=3
59
  else:
60
  Issue_category=2
61
+ Snag_Severity = st.sidebar.selectbox("Snag Severity",
62
  ("Low", "Medium","High" ))
63
+ if Snag_Severity =='Low':
64
+ Snag_Severity=1
65
+ elif Snag_Severity=="Medium":
66
+ Snag_Severity =2
67
  else:
68
+ Snag_Severity=0
69
  Customer= st.sidebar.selectbox("Customer",
70
  ("IAF", "ARMY","NAVY" ))
71
  if Customer =='IAF':
 
99
  'Manufacturer':manufacturer,
100
  'Component_Age':component_age,
101
  'Issue_category':Issue_category,
102
+ 'Snag Severity': Snag_Severity,
103
  'Customer':Customer,
104
  'Technician Skill level':Technician_Skill_level,
105
  'Prior Maintenance': prior_maintainence,