Update summary.py
Browse files- 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)
|