mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-30 03:18:57 +01:00
15 lines
305 B
Python
15 lines
305 B
Python
|
def input_modifier(string):
|
||
|
"""
|
||
|
This function is applied to your text inputs before
|
||
|
they are fed into the model.
|
||
|
"""
|
||
|
|
||
|
return string.replace(' ', '#')
|
||
|
|
||
|
def output_modifier(string):
|
||
|
"""
|
||
|
This function is applied to the model outputs.
|
||
|
"""
|
||
|
|
||
|
return string.replace(' ', '_')
|