Update app.py
Browse files
app.py
CHANGED
|
@@ -138,7 +138,7 @@ def predict_label(im):
|
|
| 138 |
|
| 139 |
def classify_images(im):
|
| 140 |
pred=predict_label(im)
|
| 141 |
-
s='Your submitted case has Prostate cancer of ISUP Grade '+pred
|
| 142 |
return s
|
| 143 |
|
| 144 |
|
|
@@ -147,5 +147,5 @@ img=gr.Image(label="Upload Image", type="filepath")
|
|
| 147 |
label=gr.Label()
|
| 148 |
examples=["5.tiff","6.tiff","7.tiff"]
|
| 149 |
|
| 150 |
-
intf=gr.Interface(title="PCa Detection ProtoType",description="This is Protorype for our model
|
| 151 |
intf.launch(inline=False)
|
|
|
|
| 138 |
|
| 139 |
def classify_images(im):
|
| 140 |
pred=predict_label(im)
|
| 141 |
+
s='Your submitted case has Prostate cancer of ISUP Grade '+str(pred)
|
| 142 |
return s
|
| 143 |
|
| 144 |
|
|
|
|
| 147 |
label=gr.Label()
|
| 148 |
examples=["5.tiff","6.tiff","7.tiff"]
|
| 149 |
|
| 150 |
+
intf=gr.Interface(title="PCa Detection ProtoType",description="This is Protorype for our model prediction",fn=classify_images,inputs=img,outputs=label,examples=examples)
|
| 151 |
intf.launch(inline=False)
|