Spaces:
Runtime error
Runtime error
last commit
Browse files
app.py
CHANGED
@@ -82,5 +82,5 @@ if uploaded_file is not None:
|
|
82 |
image = PIL.Image.open(uploaded_file)
|
83 |
img = np.array(image)
|
84 |
result = m.predict(img)
|
85 |
-
st.write(f"I think this has {result[0][0][0]}(confidence: {round(result[0][1][0],2)})")
|
86 |
st.image(image, caption='Uploaded Image.', use_column_width=True)
|
|
|
82 |
image = PIL.Image.open(uploaded_file)
|
83 |
img = np.array(image)
|
84 |
result = m.predict(img)
|
85 |
+
st.write(f"I think this has **{result[0][0][0]}**(confidence: **{round(result[0][1][0],2)*100}%**)")
|
86 |
st.image(image, caption='Uploaded Image.', use_column_width=True)
|