Update app.py
Browse files
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('
|
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():
|