Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import streamlit as st
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
st.title("Text Classifier 1")
|
5 |
-
st.write("Input text and labels -- comma separate labels. Submit. The machine will classify the text according to the labels.")
|
6 |
|
7 |
classifier = pipeline(task="zero-shot-classification")
|
8 |
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
st.title("Text Classifier 1")
|
5 |
+
st.write("Input text and labels -- comma separate labels. Submit. The machine will classify the text according to one of the labels. It will also present a score for classifying that text for that label.")
|
6 |
|
7 |
classifier = pipeline(task="zero-shot-classification")
|
8 |
|