chaninder commited on
Commit
029e398
·
1 Parent(s): 3dec12f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ labels = ['compost', 'e-waste', 'recycle', 'trash']
15
 
16
 
17
  def classify_image(input):
18
- prediction = pre_trained_model.predict(input)
19
  confidences = {labels[i]: float(prediction[i]) for i in range(4)}
20
  return confidences
21
 
 
15
 
16
 
17
  def classify_image(input):
18
+ prediction = pre_trained_model.predict(input[0])
19
  confidences = {labels[i]: float(prediction[i]) for i in range(4)}
20
  return confidences
21