pk248 commited on
Commit
967b7e4
1 Parent(s): d30219f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3,7 +3,7 @@ from transformers import pipeline
3
 
4
 
5
  # Function to load the model
6
- @st.cache_data(allow_output_mutation=True)
7
  def load_model():
8
  summarizer = pipeline("text2text-generation", model="pk248/pegasus-samsum")
9
  return summarizer
 
3
 
4
 
5
  # Function to load the model
6
+ @st.cache_data
7
  def load_model():
8
  summarizer = pipeline("text2text-generation", model="pk248/pegasus-samsum")
9
  return summarizer