Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ihatetmat authored May 28, 2024
1 parent 54efc48 commit b74581a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import uvicorn

tokenizer = BertTokenizer.from_pretrained('kykim/bert-kor-base')
model = BertForSequenceClassification.from_pretrained('kykim/bert-kor-base', num_labels=317)
model = BertForSequenceClassification.from_pretrained('kykim/bert-kor-base', num_labels=318)
model.load_state_dict(torch.load('model.pth', map_location=torch.device('cpu')))

def pad_sequences(input_ids, maxlen) :
Expand Down

0 comments on commit b74581a

Please sign in to comment.