Abso1ute666 commited on
Commit
67c09a2
·
1 Parent(s): c5dd6a1

image variable error

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ food_info = {
52
 
53
  def predict(my_image):
54
 
55
- image = Image.fromarray(image.astype('uint8'))
56
 
57
  pipe = pipeline("image-classification",
58
  model=model,
 
52
 
53
  def predict(my_image):
54
 
55
+ image = Image.fromarray(my_image.astype('uint8'))
56
 
57
  pipe = pipeline("image-classification",
58
  model=model,