nornorr commited on
Commit
43d72a1
·
1 Parent(s): 9aa6388

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -2
app.py CHANGED
@@ -28,8 +28,20 @@ def main():
28
  "Spectral_Class": [Spectral_Class]
29
  })
30
  )
 
 
 
 
 
 
 
 
 
 
 
 
31
 
32
- st.write("My star type is...", result)
33
-
34
  if __name__=="__main__":
35
  main()
 
28
  "Spectral_Class": [Spectral_Class]
29
  })
30
  )
31
+ if result[0] == 0:
32
+ result = "Red "
33
+ elif result[0] == 1:
34
+ result = "Brown"
35
+ elif result[0] == 2:
36
+ result = "White"
37
+ elif result[0] == 3:
38
+ result = "Main Sequence"
39
+ elif result[0] == 4:
40
+ result = "Main "
41
+ else:
42
+ result = "Iris-virginica"
43
 
44
+ st.write(f"Your predicted class is {result}")
45
+
46
  if __name__=="__main__":
47
  main()