Add support for extensions
This is experimental.
This commit is contained in:
parent
414fa9d161
commit
6b5dcd46c5
3 changed files with 102 additions and 54 deletions
14
extensions/example/script.py
Normal file
14
extensions/example/script.py
Normal 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(' ', '_')
|
Loading…
Add table
Add a link
Reference in a new issue