from transformers import pipeline def analyze_output(input: str): pipe = pipeline("text-classification", model="Titeiiko/OTIS-Official-Spam-Model") x = pipe(input)[0] if x["label"] == "LABEL_0": return {"type":"Not Spam", "probability":x["score"]} else: return {"type":"Spam", "probability":x["score"]} print(analyze_output("Cһeck out our amazinɡ bооѕting serviсe ѡhere you can get to Leveӏ 3 for 3 montһs for just 20 USD."))