ploysuay commited on
Commit
f45c1eb
1 Parent(s): 3b2f43d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -74,8 +74,13 @@ def main():
74
  "three_g": [Has_3G],
75
  "touch_screen": [Has_touch_screen],
76
  "wifi": [Has_wifi]}))
77
- #result = '>50k' if result[0] == 1 else '<50k'
78
- st.success(f'Your predicted Mobile prices is {result[0]}')
 
 
 
 
 
79
  if __name__ == "__main__":
80
  main()
81
  # Show prediction
 
74
  "three_g": [Has_3G],
75
  "touch_screen": [Has_touch_screen],
76
  "wifi": [Has_wifi]}))
77
+ result = if result[0] == 0:
78
+ result = 'low cost'
79
+ elif result[0] == 1:
80
+ result = 'high cost'
81
+ else:
82
+ result = 'very high cost'
83
+ st.success('Your predicted Mobile prices is'+result)
84
  if __name__ == "__main__":
85
  main()
86
  # Show prediction