tcvrishank commited on
Commit
4f0665c
1 Parent(s): b2787b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ def return_prediction(image):
26
  for score, candidate_label in sorted(zip(probs, candidate_labels), key=lambda x: -x[0])
27
  ]
28
  result = result[0]
29
- final = f"This histopathology image shows a cell population that is {round(result['score'] * 100, 2)}% certain to be {result['label']}."
30
  return final
31
 
32
  demo = gr.Interface(fn=return_prediction, inputs="image", outputs="text")
 
26
  for score, candidate_label in sorted(zip(probs, candidate_labels), key=lambda x: -x[0])
27
  ]
28
  result = result[0]
29
+ final = f"This histopathology image shows a cell population that indicates a risk score of {round(result['score'], 2) + 1}. Image suggests high risk of recurrence."
30
  return final
31
 
32
  demo = gr.Interface(fn=return_prediction, inputs="image", outputs="text")