Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -30,18 +30,15 @@ def main():
|
|
30 |
# Show prediction
|
31 |
if result[0] == 0:
|
32 |
result = "Iris-setosa"
|
|
|
33 |
elif result[0] == 1:
|
34 |
result = "Iris-versicolor"
|
|
|
35 |
else:
|
36 |
result = "Iris-virginica"
|
|
|
37 |
st.success(f"Your predicted class is {result}")
|
38 |
|
39 |
-
if result[0] == 0:
|
40 |
-
st.image(image_setosa, caption='Iris Setosa', width = 350)
|
41 |
-
elif result[0] == 1:
|
42 |
-
st.image(image_versicolor, caption='Iris Versicolor', width = 350)
|
43 |
-
else:
|
44 |
-
st.image(image_virginica, caption='Iris Virginica', width = 350)
|
45 |
|
46 |
if __name__ == '__main__':
|
47 |
main()
|
|
|
30 |
# Show prediction
|
31 |
if result[0] == 0:
|
32 |
result = "Iris-setosa"
|
33 |
+
st.image(image_setosa, caption='Iris Setosa', width = 350)
|
34 |
elif result[0] == 1:
|
35 |
result = "Iris-versicolor"
|
36 |
+
st.image(image_versicolor, caption='Iris Versicolor', width = 350)
|
37 |
else:
|
38 |
result = "Iris-virginica"
|
39 |
+
st.image(image_virginica, caption='Iris Virginica', width = 350)
|
40 |
st.success(f"Your predicted class is {result}")
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
|
43 |
if __name__ == '__main__':
|
44 |
main()
|