TharunSiva commited on
Commit
2b2bb26
1 Parent(s): 8dd1f0e
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -4,6 +4,7 @@ from model import *
4
  DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
5
 
6
  model = GPTLanguageModel().to(DEVICE)
 
7
  model.load_state_dict(torch.load("mini-gpt.pth",map_location=DEVICE), strict=False)
8
  model.eval()
9
  answer = decode(model.generate(context, max_new_tokens=3000)[0].tolist())
 
4
  DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
5
 
6
  model = GPTLanguageModel().to(DEVICE)
7
+
8
  model.load_state_dict(torch.load("mini-gpt.pth",map_location=DEVICE), strict=False)
9
  model.eval()
10
  answer = decode(model.generate(context, max_new_tokens=3000)[0].tolist())