Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
| 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")
|