Vishnurak commited on
Commit
82aa9d7
1 Parent(s): 3790fda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -28,7 +28,13 @@ def main():
28
  "petal_length": [petal_length],
29
  "petal_width": [petal_width]}))
30
  # Show prediction
31
- result = "Iris-setosa" if result[0] == 1 , "Iris-versicolor" if result[0] == 2 else "Iris-virginica"
 
 
 
 
 
 
32
  st.success("Your predicted class is"+result)
33
  if __name__ == "__main__":
34
  main()
 
28
  "petal_length": [petal_length],
29
  "petal_width": [petal_width]}))
30
  # Show prediction
31
+ if result[0] == 1:
32
+ st.write("Iris-setosa")
33
+ elif result[0] == 2:
34
+ st.write("Iris-versicolor")
35
+ else:
36
+ st.write("Iris-virginica")
37
+
38
  st.success("Your predicted class is"+result)
39
  if __name__ == "__main__":
40
  main()