Spaces:
Runtime error
Runtime error
| from transformers import pipeline | |
| # Public fake news detection model | |
| text_model = pipeline( | |
| "text-classification", | |
| model="therealcyberlord/fake-news-classification-distilbert" | |
| ) | |
| # Label mapping for readability | |
| text_label_map = { | |
| "0": "Fake News", | |
| "1": "Real News" | |
| } | |