Spaces:
Runtime error
Runtime error
Update model.py
Browse files
model.py
CHANGED
@@ -18,7 +18,7 @@ from tqdm.notebook import tqdm
|
|
18 |
class Abstractive_Summarization_Model:
|
19 |
def __init__(self):
|
20 |
self.text = None
|
21 |
-
self.IS_CNNDM =
|
22 |
self.LOWER = False
|
23 |
self.max_length = 1024 #if self.IS_CNNDM else 512
|
24 |
self.model, self.tokenizer = self.load_model()
|
|
|
18 |
class Abstractive_Summarization_Model:
|
19 |
def __init__(self):
|
20 |
self.text = None
|
21 |
+
self.IS_CNNDM = True # whether to use CNNDM dataset or XSum dataset
|
22 |
self.LOWER = False
|
23 |
self.max_length = 1024 #if self.IS_CNNDM else 512
|
24 |
self.model, self.tokenizer = self.load_model()
|