Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def process(imagep):
|
|
33 |
resized_image = cropped_image.resize((48, 48))
|
34 |
grayscale_image = resized_image.convert('L')
|
35 |
|
36 |
-
w = (y2+x2-y1-x1)//50
|
37 |
pil_image = PILImage.create(grayscale_image)
|
38 |
prediction = mood.predict(pil_image)
|
39 |
# print(prediction)
|
|
|
33 |
resized_image = cropped_image.resize((48, 48))
|
34 |
grayscale_image = resized_image.convert('L')
|
35 |
|
36 |
+
w = 1 + (y2+x2-y1-x1)//50
|
37 |
pil_image = PILImage.create(grayscale_image)
|
38 |
prediction = mood.predict(pil_image)
|
39 |
# print(prediction)
|