Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def predict_image(img):
|
|
14 |
prediction=clf.predict(img)
|
15 |
return {class_names[i]: float(prediction[i]["score"]) for i in range(2)}
|
16 |
|
17 |
-
image = gr.
|
18 |
-
label = gr.
|
19 |
|
20 |
gr.Interface(fn=predict_image, inputs=image, outputs=label, interpretation='default', title="Mammogram classification").launch()
|
|
|
14 |
prediction=clf.predict(img)
|
15 |
return {class_names[i]: float(prediction[i]["score"]) for i in range(2)}
|
16 |
|
17 |
+
image = gr.Image(shape=(224,224))
|
18 |
+
label = gr.Label(num_top_classes=2)
|
19 |
|
20 |
gr.Interface(fn=predict_image, inputs=image, outputs=label, interpretation='default', title="Mammogram classification").launch()
|