mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 16:17:57 +01:00
Turn the example script into a soft prompt script
This commit is contained in:
parent
e0b164feab
commit
96d56d4f3c
@ -1,6 +1,5 @@
|
|||||||
params = {
|
params = {
|
||||||
"input suffix": " *I say as I make a funny face*",
|
"soft prompt": " *I speak in an annoyingly cute way*",
|
||||||
"bot prefix": " *I speak in a cute way*",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def input_modifier(string):
|
def input_modifier(string):
|
||||||
@ -9,7 +8,7 @@ def input_modifier(string):
|
|||||||
they are fed into the model.
|
they are fed into the model.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
return string + params["input suffix"]
|
return string
|
||||||
|
|
||||||
def output_modifier(string):
|
def output_modifier(string):
|
||||||
"""
|
"""
|
||||||
@ -25,4 +24,4 @@ def bot_prefix_modifier(string):
|
|||||||
behavior.
|
behavior.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
return string + params["bot prefix"]
|
return string + params["soft prompt"]
|
||||||
|
Loading…
Reference in New Issue
Block a user