studio / utils /persona.py
Ava2lon's picture
Upload 170 files
345855e verified
Raw
History Blame Contribute Delete
225 Bytes
def predict_audience(words):
if len(words) < 50:
return "short_attention_gen_z"
if any(w["text"].lower() in ["money", "success"] for w in words):
return "motivated_entrepreneur"
return "general"