script.py 635 B

12345678910111213141516171819202122232425262728
  1. params = {
  2. "input suffix": " *I say as I make a funny face*",
  3. "bot prefix": " *I speak in a cute way*",
  4. }
  5. def input_modifier(string):
  6. """
  7. This function is applied to your text inputs before
  8. they are fed into the model.
  9. """
  10. return string + params["input suffix"]
  11. def output_modifier(string):
  12. """
  13. This function is applied to the model outputs.
  14. """
  15. return string
  16. def bot_prefix_modifier(string):
  17. """
  18. This function is only applied in chat mode. It modifies
  19. the prefix text for the Bot and can be used to bias its
  20. behavior.
  21. """
  22. return string + params["bot prefix"]