Inference.
Browse files
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.
|
| 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)
|