Nicole-M commited on
Commit
11126b8
·
verified ·
1 Parent(s): 41f706b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.inputs.Image(shape=(224,224))
18
- label = gr.outputs.Label(num_top_classes=2)
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()