Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
6 |
|
7 |
-
classifier = pipeline(
|
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')
|