Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,8 +22,9 @@ def detect_cancer(img):
|
|
22 |
return("Unfortunately! you have breast cancer. Kindly consult a doctor!")
|
23 |
|
24 |
|
25 |
-
|
26 |
-
|
|
|
27 |
inputs=gr.Image(shape=(50, 50)),
|
28 |
outputs='text',
|
29 |
examples=["sample2_class1.png", "sample3_class0","sample4_class0"]).launch()
|
|
|
22 |
return("Unfortunately! you have breast cancer. Kindly consult a doctor!")
|
23 |
|
24 |
|
25 |
+
gr.Interface(title="Breast Cancer Diagnosis\n(by Umair Akram)",
|
26 |
+
description="Enter the Histopathological image of the breast to predict the diagnosis."
|
27 |
+
fn=detect_cancer,
|
28 |
inputs=gr.Image(shape=(50, 50)),
|
29 |
outputs='text',
|
30 |
examples=["sample2_class1.png", "sample3_class0","sample4_class0"]).launch()
|