Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,13 @@ def main():
|
|
28 |
"petal_length": [petal_length],
|
29 |
"petal_width": [petal_width]}))
|
30 |
# Show prediction
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
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()
|