Sasidhar commited on
Commit
87d90ac
1 Parent(s): a157ddb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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