Albatta, bu erda siz tasvirlagan narsani bajarishi kerak bo'lgan Python kodi: PIL importidan Image def rotate_record ((image_path): image = Image.open ((image_path) # osonroq ishlash uchun rasmni kulrang rangga aylantirish = image.convert (('L') # Rasmni rangdagi burchak uchun 1 daraja ko'paytirish bilan barcha mumkin bo'lgan burchaklarga aylantiring ((0, 360, 1): aylantirilgan = image.rotate ((angle) # Tegining yorliqning yuqori qismida bo'lganligini tekshiring image_top = rotated.crop (((image.width/2-50, 0, image.width/2+50, 50)) agar label_top.getextrema ((() [0][0] == top.getextrema)) [1][0] # Tegining yuqori qismida bo'lsa, asl burchak
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence