Update app.py
Browse files
app.py
CHANGED
@@ -22,6 +22,14 @@ def predict(img):
|
|
22 |
|
23 |
return prediction, explanation
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
title = "Breast cancer detection with AI(Deep Transfer Learning)"
|
26 |
description = "<p style='text-align: center'><b>As a radiologist or oncologist, it is crucial to know what is wrong with a breast x-ray image.<b><br><b>Upload the breast X-ray image to know what is wrong with a patients breast with or without inplant<b><p>"
|
27 |
article="<p style='text-align: center'>Web app is built and managed by Addai Fosberg<b></p>"
|
|
|
22 |
|
23 |
return prediction, explanation
|
24 |
|
25 |
+
|
26 |
+
# Create the Gradio interface
|
27 |
+
inputs = gr.inputs.Image(label="Upload a breast X-ray image")
|
28 |
+
outputs = [
|
29 |
+
gr.outputs.Textbox(label="Prediction"),
|
30 |
+
gr.outputs.Textbox(label="Explanation")
|
31 |
+
]
|
32 |
+
|
33 |
title = "Breast cancer detection with AI(Deep Transfer Learning)"
|
34 |
description = "<p style='text-align: center'><b>As a radiologist or oncologist, it is crucial to know what is wrong with a breast x-ray image.<b><br><b>Upload the breast X-ray image to know what is wrong with a patients breast with or without inplant<b><p>"
|
35 |
article="<p style='text-align: center'>Web app is built and managed by Addai Fosberg<b></p>"
|