Spaces:
Sleeping

nivith commited on
Commit
a14c063
·
1 Parent(s): 9c8b746

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ class_names = ['Non_Cancer','Cancer']
17
  def predict_input_image(img):
18
  img_4d=img.reshape(-1,100,100,3)
19
  prediction=model.predict(img_4d)[0]
20
- return {class_names[i]: float(prediction[i]) for i in range(1)}
21
  image = gr.Image(shape=(100,100))
22
  label = gr.Label(num_top_classes=2)
23
 
 
17
  def predict_input_image(img):
18
  img_4d=img.reshape(-1,100,100,3)
19
  prediction=model.predict(img_4d)[0]
20
+ return {class_names[i]: float(prediction[i]) for i in range(0)}
21
  image = gr.Image(shape=(100,100))
22
  label = gr.Label(num_top_classes=2)
23