Paarth commited on
Commit
d332496
1 Parent(s): 0cd5e33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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('/content/drive/MyDrive/PlageBERT/Models/codet5-base-1_epoch-val_loss-0.80.pth'))
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,