test2 / app.py
sbthesis's picture
Update app.py
d932eba
raw
history blame
384 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
import datasets
evaluate transformers[sentencepiece]
classifier = pipeline("zero-shot-classification")
classifier(
"This is a course about the Transformers library",
candidate_labels=["education", "politics", "business"],
)