Spaces:
Runtime error
Runtime error
from zeno import distill, metric, ZenoOptions | |
from pandas import DataFrame | |
def length(df: DataFrame, ops: ZenoOptions): | |
return df["prompt"].str.len() | |
def avg_image_nswf(df: DataFrame, ops: ZenoOptions): | |
return float(df["image_nsfw"].dropna().mean()) | |
def avg_prompt_nsfw(df: DataFrame, ops: ZenoOptions): | |
return float(df["prompt_nsfw"].dropna().mean()) | |