Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,10 @@ def predict_upload():
|
|
24 |
max_result = (np.max(result, axis=-1)) * 100 # max probability
|
25 |
pred_prob = np.format_float_positional(max_result, precision=2) # format probability
|
26 |
pred_class = classes[(np.argmax(result, axis=-1)[0])] # string
|
27 |
-
st.
|
|
|
|
|
|
|
28 |
|
29 |
# instantiate submit button
|
30 |
if st.button('Classify'):
|
|
|
24 |
max_result = (np.max(result, axis=-1)) * 100 # max probability
|
25 |
pred_prob = np.format_float_positional(max_result, precision=2) # format probability
|
26 |
pred_class = classes[(np.argmax(result, axis=-1)[0])] # string
|
27 |
+
st.write(f'### There is a')
|
28 |
+
st.success(f'# {pred_prob}% probability')
|
29 |
+
st.write(f'### that this retinal image shows')
|
30 |
+
st.success(f'# {pred_class}')
|
31 |
|
32 |
# instantiate submit button
|
33 |
if st.button('Classify'):
|