sagar007 commited on
Commit
1ffcf64
·
verified ·
1 Parent(s): e9779bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ tokenizer = GPT2Tokenizer.from_pretrained('gpt2')
7
  model = GPT2LMHeadModel.from_pretrained('gpt2')
8
 
9
  # Load the best model weights
10
- model.load_state_dict(torch.load('best_model.pth', map_location=torch.device('cpu')))
11
 
12
  # Set the model to evaluation mode
13
  model.eval()
 
7
  model = GPT2LMHeadModel.from_pretrained('gpt2')
8
 
9
  # Load the best model weights
10
+ model.load_state_dict(torch.load('GPT_model.pth', map_location=torch.device('cpu')))
11
 
12
  # Set the model to evaluation mode
13
  model.eval()