Skip to content

Commit

Permalink
Small bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
harper-carroll authored Sep 27, 2023
1 parent c18d5b9 commit 8544819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def interactive(model_path: str, max_tokens: int = 35, temperature: float = 0.7)

while True:
prompt = input("Prompt: ")
res, _logprobs = generate([prompt], transformer, tokenizer, max_tokens)
res, _logprobs = generate([prompt], transformer, tokenizer, max_tokens=max_tokens)
print(res[0])
print("=====================")

Expand Down

0 comments on commit 8544819

Please sign in to comment.