script.py 363 B

123456789101112131415161718
  1. params = {
  2. "input suffix": " *I say as I make a funny face*",
  3. }
  4. def input_modifier(string):
  5. """
  6. This function is applied to your text inputs before
  7. they are fed into the model.
  8. """
  9. return string + params["input suffix"]
  10. def output_modifier(string):
  11. """
  12. This function is applied to the model outputs.
  13. """
  14. return string