Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -72,7 +72,9 @@ def split_image_into_12(img_path: str):
|
|
| 72 |
|
| 73 |
crop = img.crop((left, top, right, bottom))
|
| 74 |
|
| 75 |
-
|
|
|
|
|
|
|
| 76 |
crop.save(out_path)
|
| 77 |
|
| 78 |
index += 1
|
|
|
|
| 72 |
|
| 73 |
crop = img.crop((left, top, right, bottom))
|
| 74 |
|
| 75 |
+
# 🔥 ВАЖНО: фиксированная позиция
|
| 76 |
+
out_path = f"{base}_r{r}_c{c}_n{index}.png"
|
| 77 |
+
|
| 78 |
crop.save(out_path)
|
| 79 |
|
| 80 |
index += 1
|