mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-26 01:30:20 +01:00
6da94e358c
Still experimental
19 lines
363 B
Python
19 lines
363 B
Python
params = {
|
|
"input suffix": " *I say as I make a funny face*",
|
|
}
|
|
|
|
def input_modifier(string):
|
|
"""
|
|
This function is applied to your text inputs before
|
|
they are fed into the model.
|
|
"""
|
|
|
|
return string + params["input suffix"]
|
|
|
|
def output_modifier(string):
|
|
"""
|
|
This function is applied to the model outputs.
|
|
"""
|
|
|
|
return string
|