Alex Gonzalez
commited on
Commit
·
0a0514c
1
Parent(s):
4fb5c0d
Removed greyscale
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ processor = AutoImageProcessor.from_pretrained("dima806/facial_emotions_image_de
|
|
10 |
model = AutoModelForImageClassification.from_pretrained("dima806/facial_emotions_image_detection")
|
11 |
|
12 |
def predict(value) -> str:
|
13 |
-
img = Image.fromarray(value)
|
14 |
inputs = processor(images=image, return_tensors="pt")
|
15 |
outputs = model(**inputs)
|
16 |
logits = outputs.logits
|
|
|
10 |
model = AutoModelForImageClassification.from_pretrained("dima806/facial_emotions_image_detection")
|
11 |
|
12 |
def predict(value) -> str:
|
13 |
+
img = Image.fromarray(value)
|
14 |
inputs = processor(images=image, return_tensors="pt")
|
15 |
outputs = model(**inputs)
|
16 |
logits = outputs.logits
|