drhead commited on
Commit
e6d942c
·
1 Parent(s): 4d75269
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -152,7 +152,7 @@ sorted_tag_score = {}
152
  @spaces.GPU(duration=5)
153
  def run_classifier(image, threshold):
154
  global sorted_tag_score
155
- img = image.convert('RGB')
156
  tensor = transform(img).unsqueeze(0)
157
 
158
  with torch.no_grad():
 
152
  @spaces.GPU(duration=5)
153
  def run_classifier(image, threshold):
154
  global sorted_tag_score
155
+ img = image.convert('RGBA')
156
  tensor = transform(img).unsqueeze(0)
157
 
158
  with torch.no_grad():