shamim237 commited on
Commit
771a4bb
1 Parent(s): 5f5a6ec

Update summary.py

Browse files
Files changed (1) hide show
  1. summary.py +1 -1
summary.py CHANGED
@@ -7,7 +7,7 @@ device = 'cuda' if torch.cuda.is_available() else 'cpu'
7
  tokenizer = AutoTokenizer.from_pretrained(model_name)
8
  model = PegasusForConditionalGeneration.from_pretrained(model_name).to(device)
9
 
10
- @st.cache(allow_output_mutation=True)
11
 
12
  def summarize(passage):
13
  txt = " ".join(passage)
 
7
  tokenizer = AutoTokenizer.from_pretrained(model_name)
8
  model = PegasusForConditionalGeneration.from_pretrained(model_name).to(device)
9
 
10
+ # @st.cache(allow_output_mutation=True)
11
 
12
  def summarize(passage):
13
  txt = " ".join(passage)