joheras commited on
Commit
fb13259
1 Parent(s): 0b1074c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ def classify_image(image):
20
  resized_image = tf.image.resize(
21
  tf.convert_to_tensor([image]), size=(IMAGE_SIZE, IMAGE_SIZE))
22
  pred = model.predict(resized_image)
23
- prediction = softmax(pred)
24
  return {labels[i]: float(prediction[i]) for i in range(100)}
25
 
26
  image = gr.inputs.Image()
 
20
  resized_image = tf.image.resize(
21
  tf.convert_to_tensor([image]), size=(IMAGE_SIZE, IMAGE_SIZE))
22
  pred = model.predict(resized_image)
23
+ prediction = softmax(pred)[0]
24
  return {labels[i]: float(prediction[i]) for i in range(100)}
25
 
26
  image = gr.inputs.Image()