Use the correct generation min and max when using soft prompt

This commit is contained in:
Gnome Ann 2021-10-28 16:39:59 -04:00
parent 511817132a
commit 24d5d63c9f
1 changed files with 1 additions and 1 deletions

View File

@ -1189,7 +1189,7 @@ def calcsubmit(txt):
if(actionlen == 0):
# First/Prompt action
subtxt = vars.memory + winfo + anotetxt + vars.prompt
lnsub = lnmem + lnwi + lnprompt + lnanote
lnsub = lnsp + lnmem + lnwi + lnprompt + lnanote
if(not vars.model in ["Colab", "OAI"]):
generate(subtxt, lnsub+1, lnsub+vars.genamt)