Bu yerda baholash qog'ozida tasvirlangan uch qatlamli ierarxiyani amalga oshiruvchi namunaviy kod: import transformers import torch class ScriptGenerator: def __init__(self): self.model = transformers.pipeline (("matn-ajdod", model="xlm-roberta-base") def generate_script (((o'zi, markaziy_to'qnashuv): # eng yuqori qatlam: foydalanuvchi kiritish belgilari, plot_outline, joylar = self.middle_layer (((o'rta_to'qnashuv) script_text = self.bottom_layer (o'z_o'zi, markaziy_to'qnashuv): # import transformers import class class ScriptGenerator: def __init__ (((o'z_o'zi): self.model = self.outline, o'z
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence