Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -11,6 +11,11 @@ def predict(img):
|
|
11 |
st.image(img, caption="Your image", use_column_width=True)
|
12 |
pred, key, probs = learn_inf.predict(img)
|
13 |
# st.write(learn_inf.predict(img))
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
|
16 |
|
|
|
11 |
st.image(img, caption="Your image", use_column_width=True)
|
12 |
pred, key, probs = learn_inf.predict(img)
|
13 |
# st.write(learn_inf.predict(img))
|
14 |
+
f"""
|
15 |
+
|
16 |
+
### Rediction result: {pred}
|
17 |
+
### Probability of {pred}: {probs[key].item()*100: .2f}%
|
18 |
+
"""
|
19 |
|
20 |
|
21 |
|