Spaces:
Sleeping
Sleeping
Update app classifacation.py
Browse files- app classifacation.py +2 -3
app classifacation.py
CHANGED
@@ -5,7 +5,7 @@ import streamlit as st
|
|
5 |
|
6 |
"""
|
7 |
# HeartNet
|
8 |
-
This is a classifier for images of
|
9 |
"""
|
10 |
|
11 |
def predict(img):
|
@@ -14,14 +14,13 @@ def predict(img):
|
|
14 |
# st.write(learn_inf.predict(img))
|
15 |
|
16 |
f"""
|
17 |
-
## This **{'is ' if pred == 'mi' else 'is not'}** an MI (heart attack).
|
18 |
### Rediction result: {pred}
|
19 |
### Probability of {pred}: {probs[key].item()*100: .2f}%
|
20 |
"""
|
21 |
|
22 |
|
23 |
path = "./"
|
24 |
-
learn_inf = load_learner(path + "
|
25 |
|
26 |
option = st.radio("", ["Upload Image", "Image URL"])
|
27 |
|
|
|
5 |
|
6 |
"""
|
7 |
# HeartNet
|
8 |
+
This is a classifier for images of tzuyu iu hanni and winter.
|
9 |
"""
|
10 |
|
11 |
def predict(img):
|
|
|
14 |
# st.write(learn_inf.predict(img))
|
15 |
|
16 |
f"""
|
|
|
17 |
### Rediction result: {pred}
|
18 |
### Probability of {pred}: {probs[key].item()*100: .2f}%
|
19 |
"""
|
20 |
|
21 |
|
22 |
path = "./"
|
23 |
+
learn_inf = load_learner(path + "resnet34_stage-1cele.pkl")
|
24 |
|
25 |
option = st.radio("", ["Upload Image", "Image URL"])
|
26 |
|