aje6 commited on
Commit
9f76001
·
verified ·
1 Parent(s): 0fc1593

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -268,14 +268,12 @@ def predict(image):
268
  print("type output:", type(output))
269
  print(output)
270
 
 
271
  # annotated_img = (output[0] / 255.0 - mean)/std
272
- annotated_img = classes[output[0][0].argmax(0)]
273
-
274
  print("type annotated image:", type(annotated_img))
275
  print(annotated_img)
276
 
277
- # annotated_img = output[0]
278
-
279
  return annotated_img
280
 
281
  # Gradio interface
 
268
  print("type output:", type(output))
269
  print(output)
270
 
271
+ annotated_img = output[0]
272
  # annotated_img = (output[0] / 255.0 - mean)/std
273
+ # annotated_img = classes[output[0][0].argmax(0)]
 
274
  print("type annotated image:", type(annotated_img))
275
  print(annotated_img)
276
 
 
 
277
  return annotated_img
278
 
279
  # Gradio interface