Spaces:
Sleeping
Sleeping
Create Main.py
Browse files12345678910111213141516171819202122232425from transformers import pipeline
# Load Hugging Face zero-shot classifierclassifier = pipeline("zero-shot-classification")
# Example job description (you can change this)job_description = """Urgent hiring! Work from home, no experience needed, $5000/month!"""
# Define candidate labelslabels = ["Legit", "Fake"]
# Run classificationresult = classifier(job_description, candidate_labels=labels)
# Extract predictionpredicted_label = result['labels'][0]confidence = result['scores'][0]
# Print the resultprint("Job Description:")print(job_description)print("\nPrediction:", predicted_label)print(f"Confidence: {confidence:.2f}")Main.pyAdded+25