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() css_code='body{background-image:url("https://static.wixstatic.com/media/ee3b6a_e0b80dada22d460fa1047b14b35f4872~mv2.png/v1/fit/w_2500,h_1330,al_c/ee3b6a_e0b80dada22d460fa1047b14b35f4872~mv2.png");}' gr.Interface(lambda x:x, "textbox1", "textbox2", css=css_code).launch(debug=True)