ab-huggingface commited on
Commit
22f4835
·
verified ·
1 Parent(s): 2c7246c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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)