script.py 305 B

1234567891011121314
  1. def input_modifier(string):
  2. """
  3. This function is applied to your text inputs before
  4. they are fed into the model.
  5. """
  6. return string.replace(' ', '#')
  7. def output_modifier(string):
  8. """
  9. This function is applied to the model outputs.
  10. """
  11. return string.replace(' ', '_')