Hotfix for top_p parameter in generator call
This commit is contained in:
parent
f520e859cf
commit
fff77c5a88
|
@ -642,6 +642,7 @@ def generate(txt, min, max):
|
|||
min_length=min,
|
||||
max_length=max,
|
||||
repetition_penalty=vars.rep_pen,
|
||||
top_p=vars.top_p,
|
||||
temperature=vars.temp
|
||||
)[0]["generated_text"]
|
||||
print("{0}{1}{2}".format(colors.CYAN, genout, colors.END))
|
||||
|
|
Loading…
Reference in New Issue