Spaces:
Running
Running
Commit
·
67c09a2
1
Parent(s):
c5dd6a1
image variable error
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ food_info = {
|
|
52 |
|
53 |
def predict(my_image):
|
54 |
|
55 |
-
image = Image.fromarray(
|
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,
|