drhead commited on
Commit
8409352
1 Parent(s): 08e34e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -133,7 +133,7 @@ sorted_tag_score = {}
133
  @spaces.GPU(duration=5)
134
  def run_classifier(image, threshold):
135
  global sorted_tag_score
136
- img = image.convert('RGB')
137
  tensor = transform(img).unsqueeze(0)
138
 
139
  with torch.no_grad():
 
133
  @spaces.GPU(duration=5)
134
  def run_classifier(image, threshold):
135
  global sorted_tag_score
136
+ img = image.convert('RGBA')
137
  tensor = transform(img).unsqueeze(0)
138
 
139
  with torch.no_grad():