Update app.py
Browse files
app.py
CHANGED
@@ -43,8 +43,8 @@ def Analysing_image(st, model, image_file):
|
|
43 |
|
44 |
# Assuming a multi-class classification where the class with the highest probability is selected:
|
45 |
predicted_class = np.argmax(predictions, axis=1)
|
46 |
-
st.write("Prediction :", keys
|
47 |
-
return keys
|
48 |
except:
|
49 |
return None
|
50 |
|
|
|
43 |
|
44 |
# Assuming a multi-class classification where the class with the highest probability is selected:
|
45 |
predicted_class = np.argmax(predictions, axis=1)
|
46 |
+
st.write("Prediction :", keys[str(predicted_class[0])])
|
47 |
+
return keys[str(predicted_class[0])]
|
48 |
except:
|
49 |
return None
|
50 |
|