fix alpha
Browse files151 unmodified lines152153154155156157158151 unmodified lines@spaces.GPU(duration=5)def run_classifier(image, threshold):global sorted_tag_scoreimg = image.convert('RGB')tensor = transform(img).unsqueeze(0)with torch.no_grad():151 unmodified lines152153154155156157158151 unmodified lines@spaces.GPU(duration=5)def run_classifier(image, threshold):global sorted_tag_scoreimg = image.convert('RGBA')tensor = transform(img).unsqueeze(0)with torch.no_grad():
app.py+1-1