Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ warnings.simplefilter('ignore')
|
|
19 |
MODEL_NAME = 'Salesforce/codet5-base-multi-sum'
|
20 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
|
21 |
model = SummarizerModel(MODEL_NAME)
|
22 |
-
model.load_state_dict(torch.load('
|
23 |
embedding_model = SentenceTransformer('all-MiniLM-L6-v2')
|
24 |
|
25 |
def summarize(text: str,
|
|
|
19 |
MODEL_NAME = 'Salesforce/codet5-base-multi-sum'
|
20 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
|
21 |
model = SummarizerModel(MODEL_NAME)
|
22 |
+
model.load_state_dict(torch.load('codet5-base-1_epoch-val_loss-0.80.pth'))
|
23 |
embedding_model = SentenceTransformer('all-MiniLM-L6-v2')
|
24 |
|
25 |
def summarize(text: str,
|