Spaces:
Sleeping
Sleeping
Create app.py
Browse files12345678910111213141516171819202122import streamlit as stfrom transformers import pipeline
# Load Hugging Face classifierclassifier = pipeline("zero-shot-classification")
st.title("Fake Job Posting Detector")
# Input job descriptionjob_description = st.text_area("Enter the job description:")
if st.button("Check Job"): if job_description.strip() == "": st.warning("Please enter a job description.") else: labels = ["Legit", "Fake"] result = classifier(job_description, candidate_labels=labels) predicted_label = result['labels'][0] confidence = result['scores'][0] st.write(f"Prediction: **{predicted_label}**") st.write(f"Confidence: {confidence:.2f}")app.pyAdded+22