test2 / app.py
sbthesis's picture
Update app.py
2a95c49
raw
history blame
330 Bytes
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"],
)