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

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('models/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('model/model_state_dict.pth', map_location=torch.device('cpu')))
15
  model.eval()
16
  return model
17