dcd018 commited on
Commit
55667d5
·
1 Parent(s): 4baf487

Inference.

Browse files
Files changed (1) hide show
  1. app/api/api_v1/endpoints/openai.py +1 -1
app/api/api_v1/endpoints/openai.py CHANGED
@@ -176,7 +176,7 @@ async def create_collection(
176
  width, height = cover.size
177
  target_width = round(width - (width * 0.75))
178
  target_height = round(height - (height * 0.75))
179
- cover = cover.resize((target_width, target_height), PIL.Image.ANTIALIAS)
180
  cover.save(tmp_file, optimize=True, quality=95)
181
  tasks = label_studio_project.import_tasks(tmp_file)
182
  os.remove(tmp_file)
 
176
  width, height = cover.size
177
  target_width = round(width - (width * 0.75))
178
  target_height = round(height - (height * 0.75))
179
+ cover = cover.resize((target_width, target_height), PIL.Image.Resampling.LANCZOS)
180
  cover.save(tmp_file, optimize=True, quality=95)
181
  tasks = label_studio_project.import_tasks(tmp_file)
182
  os.remove(tmp_file)