tcvrishank commited on
Commit
b2787b0
·
1 Parent(s): 7f51c38

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 cells that are {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 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")