File size: 225 Bytes
345855e
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
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"