File size: 330 Bytes
c303df4 c8f8664 c303df4 |
1 2 3 4 5 6 7 8 9 10 |
from transformers import pipeline
import gradio as gr #this is in place of the streamlit of the HF video
import torch #this is just like the HF video
classifier = pipeline("zero-shot-classification")
classifier(
"This is a course about the Transformers library",
candidate_labels=["education", "politics", "business"],
) |