MuhammadAzharITU's picture
Create App.py
a781ce9 verified
import streamlit as st
from transformers import pipeline
model_name = "MuhammadAzharITU/fake-news-classifier"
pipe = pipeline("text-classification", model=model_name)
st.title("Fake News Classifier")
text = st.text_area("Enter Urdu news here")
if text:
# Perform classification
out = pipe(text)
st.json(out)