Update app.py
Browse files137 unmodified lines1381391401411421431442 unmodified lines147148149150151137 unmodified linesdef classify_images(im):pred=predict_label(im)s='Your submitted case has Prostate cancer of ISUP Grade '+predreturn s2 unmodified lineslabel=gr.Label()examples=["5.tiff","6.tiff","7.tiff"]intf=gr.Interface(title="PCa Detection ProtoType",description="This is Protorype for our model presiction",fn=classify_images,inputs=img,outputs=label,examples=examples)intf.launch(inline=False)137 unmodified lines1381391401411421431442 unmodified lines147148149150151137 unmodified linesdef classify_images(im):pred=predict_label(im)s='Your submitted case has Prostate cancer of ISUP Grade '+str(pred)return s2 unmodified lineslabel=gr.Label()examples=["5.tiff","6.tiff","7.tiff"]intf=gr.Interface(title="PCa Detection ProtoType",description="This is Protorype for our model prediction",fn=classify_images,inputs=img,outputs=label,examples=examples)intf.launch(inline=False)
app.py+2-2