Chintan-Shah commited on
Commit
905345d
·
verified ·
1 Parent(s): 7d3dc29

Changed a better model trained

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -147,7 +147,7 @@ class BigramLanguageModel(nn.Module):
147
  return idx
148
 
149
  model = BigramLanguageModel()
150
- model.load_state_dict(torch.load('trainedstorycharmodel.pt', map_location=torch.device('cpu')))
151
  # m = model.to(device)
152
  # print the number of parameters in the model
153
  # print(sum(p.numel() for p in m.parameters())/1e6, 'M parameters')
 
147
  return idx
148
 
149
  model = BigramLanguageModel()
150
+ model.load_state_dict(torch.load('StoryCharModelOptimized.pt', map_location=torch.device('cpu')))
151
  # m = model.to(device)
152
  # print the number of parameters in the model
153
  # print(sum(p.numel() for p in m.parameters())/1e6, 'M parameters')