Update nano_gpt_inferencing.py
Browse files- nano_gpt_inferencing.py +1 -1
nano_gpt_inferencing.py
CHANGED
@@ -187,7 +187,7 @@ class BigramLanguageModel(nn.Module):
|
|
187 |
return idx
|
188 |
|
189 |
|
190 |
-
def generate_paragraph(initial_text,max_token):
|
191 |
model = BigramLanguageModel()
|
192 |
model.load_state_dict(torch.load('nano_gpt_model.pth'))
|
193 |
final_model = model.to(device)
|
|
|
187 |
return idx
|
188 |
|
189 |
|
190 |
+
def generate_paragraph(initial_text,max_token=50):
|
191 |
model = BigramLanguageModel()
|
192 |
model.load_state_dict(torch.load('nano_gpt_model.pth'))
|
193 |
final_model = model.to(device)
|