Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -531,10 +531,10 @@ def updateItemDisplay(seshid, budget=False):
|
|
| 531 |
else: #except:
|
| 532 |
return sesh.updated_display
|
| 533 |
|
| 534 |
-
def getMostUsedColorsRGB(
|
| 535 |
-
|
| 536 |
-
img = np.array(Image.open(io.BytesIO(
|
| 537 |
-
|
| 538 |
return []
|
| 539 |
imgq = img // 48 * 48
|
| 540 |
clr_counts = {}
|
|
|
|
| 531 |
else: #except:
|
| 532 |
return sesh.updated_display
|
| 533 |
|
| 534 |
+
def getMostUsedColorsRGB(img_bytes):
|
| 535 |
+
if True:
|
| 536 |
+
img = np.array(Image.open(io.BytesIO(img_bytes)))
|
| 537 |
+
else:
|
| 538 |
return []
|
| 539 |
imgq = img // 48 * 48
|
| 540 |
clr_counts = {}
|