kishkath commited on
Commit
1152b2a
·
verified ·
1 Parent(s): f47b4c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ def initialize_model():
11
  global model
12
  if model is None:
13
  model = GPT(GPTConfig())
14
- model.load_state_dict(torch.load('model_state_dict.pth', map_location=torch.device('cpu')))
15
  model.eval()
16
  return model
17
 
 
11
  global model
12
  if model is None:
13
  model = GPT(GPTConfig())
14
+ model.load_state_dict(torch.load('models/model_state_dict.pth', map_location=torch.device('cpu')))
15
  model.eval()
16
  return model
17