Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,10 +2,8 @@ import streamlit as st
|
|
| 2 |
import transformers
|
| 3 |
from transformers import pipeline
|
| 4 |
|
| 5 |
-
|
| 6 |
-
classifier = pipeline("zero-shot-classification",
|
| 7 |
-
model="facebook/bart-large-mnli")
|
| 8 |
|
| 9 |
-
sequence_to_classify = "
|
| 10 |
candidate_labels = ['travel', 'cooking', 'dancing']
|
| 11 |
classifier(sequence_to_classify, candidate_labels)
|
|
|
|
| 2 |
import transformers
|
| 3 |
from transformers import pipeline
|
| 4 |
|
| 5 |
+
classifier = pipeline("zero-shot-classification", model="facebook/bart-large-mnli")
|
|
|
|
|
|
|
| 6 |
|
| 7 |
+
sequence_to_classify = st.text_area("Enter the text here")
|
| 8 |
candidate_labels = ['travel', 'cooking', 'dancing']
|
| 9 |
classifier(sequence_to_classify, candidate_labels)
|