bigghuggs commited on
Commit
3237d11
·
verified ·
1 Parent(s): 47cd98e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -531,10 +531,10 @@ def updateItemDisplay(seshid, budget=False):
531
  else: #except:
532
  return sesh.updated_display
533
 
534
- def getMostUsedColorsRGB(img):
535
- try:
536
- img = np.array(Image.open(io.BytesIO(r)))
537
- except:
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 = {}