File size: 324 Bytes
a781ce9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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) |