yxmauw commited on
Commit
fbdfda2
1 Parent(s): 2775a6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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.success(f'There is a **{pred_prob}** % probability that this retinal image shows **{pred_class}**')
 
 
 
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'):