Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ max_length = 500
|
|
| 21 |
enc = tiktoken.get_encoding('gpt2')
|
| 22 |
|
| 23 |
# CHANGES IN CURRENT CODE
|
| 24 |
-
ckpt_path = os.path.join(modelpath, '
|
| 25 |
print(ckpt_path)
|
| 26 |
checkpoint = torch.load(ckpt_path, map_location=device)
|
| 27 |
gptconf = GPTConfig(**checkpoint['model_args'])
|
|
|
|
| 21 |
enc = tiktoken.get_encoding('gpt2')
|
| 22 |
|
| 23 |
# CHANGES IN CURRENT CODE
|
| 24 |
+
ckpt_path = os.path.join(modelpath, 'GPT2_TinyShakespeare1.pt')
|
| 25 |
print(ckpt_path)
|
| 26 |
checkpoint = torch.load(ckpt_path, map_location=device)
|
| 27 |
gptconf = GPTConfig(**checkpoint['model_args'])
|