Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -44,6 +44,7 @@ def classify_news_article(article_text: str) -> str:
|
|
44 |
Returns:
|
45 |
str: 'Real' if the article is classified as real news, 'Fake' otherwise.
|
46 |
"""
|
|
|
47 |
# Perform classification
|
48 |
model_name = "Pulk17/Fake-News-Detection"
|
49 |
classifier = pipeline("text-classification", model=model_name)
|
|
|
44 |
Returns:
|
45 |
str: 'Real' if the article is classified as real news, 'Fake' otherwise.
|
46 |
"""
|
47 |
+
from transformers import pipeline
|
48 |
# Perform classification
|
49 |
model_name = "Pulk17/Fake-News-Detection"
|
50 |
classifier = pipeline("text-classification", model=model_name)
|