Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,8 @@ def get_sentiment(text):
|
|
27 |
dec = [sentiment_tokenizer.decode(ids) for ids in output]
|
28 |
label = dec[0]
|
29 |
return label
|
30 |
-
|
|
|
31 |
def get_summarizer():
|
32 |
summarizer = pipeline("summarization", model="facebook/bart-large-cnn")
|
33 |
return summarizer
|
|
|
27 |
dec = [sentiment_tokenizer.decode(ids) for ids in output]
|
28 |
label = dec[0]
|
29 |
return label
|
30 |
+
|
31 |
+
@st.cache(allow_output_mutation=True)
|
32 |
def get_summarizer():
|
33 |
summarizer = pipeline("summarization", model="facebook/bart-large-cnn")
|
34 |
return summarizer
|