Wootang01 commited on
Commit
222f5e0
·
1 Parent(s): 598a151

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,9 +2,9 @@ import streamlit as st
2
  from transformers import pipeline
3
 
4
  st.title("Text Classifier - BART-Large-MNLI")
5
- st.caption("Input text and labels. Submit. The machine will classify the text according to the labels.")
6
 
7
- classifier = pipeline('zero-shot-classification')
8
 
9
  form = st.form(key='zeroclassifier_form')
10
  input_text = form.text_input(label='Input Text')
 
2
  from transformers import pipeline
3
 
4
  st.title("Text Classifier - BART-Large-MNLI")
5
+ st.write("Input text and labels. Submit. The machine will classify the text according to the labels.")
6
 
7
+ classifier = pipeline("zero-shot-classification", model='facebook/bart-large-mnli')
8
 
9
  form = st.form(key='zeroclassifier_form')
10
  input_text = form.text_input(label='Input Text')