Add support for extensions

This is experimental.
This commit is contained in:
oobabooga 2023-01-27 00:40:39 -03:00
parent 414fa9d161
commit 6b5dcd46c5
3 changed files with 102 additions and 54 deletions

View file

@ -0,0 +1,14 @@
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(' ', '_')