Spaces:
Sleeping
Sleeping
Commit
•
ed7f83f
1
Parent(s):
1e7ab48
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,6 @@ def predict(img):
|
|
16 |
pred, key, probs = learn_inf.predict(img)
|
17 |
|
18 |
result_message = f"""
|
19 |
-
## This **{'is ' if pred == 'mi' else 'is not'}** an MI (heart attack).
|
20 |
### Prediction result: {pred}
|
21 |
### Probability of {pred}: {probs[key].item()*100: .2f}%
|
22 |
"""
|
|
|
16 |
pred, key, probs = learn_inf.predict(img)
|
17 |
|
18 |
result_message = f"""
|
|
|
19 |
### Prediction result: {pred}
|
20 |
### Probability of {pred}: {probs[key].item()*100: .2f}%
|
21 |
"""
|