BR_Project / app.py
gibil's picture
Update app.py
4cd78af
raw
history blame
397 Bytes
from transformers import pipeline, AutoTokenizer, AutoModelForSequenceClassification
import gradio as gr
model = AutoModelForSequenceClassification.from_pretrained("NDugar/ZSD-microsoft-v2xxlmnli")
p = pipeline("zero-shot-classification", model=model, tokenizer = "NDugar/ZSD-microsoft-v2xxlmnli")
io = gr.Interface.from_pipeline(p, theme="dark", title = "Beit Rabban Final Project")
io.launch()