From 19c46699f37cbd865c70ff876ad66f8e675bd5b1 Mon Sep 17 00:00:00 2001 From: Alen-joy47 Date: Wed, 2 Apr 2025 06:42:52 +0000 Subject: [PATCH] Added prompt expansion with saved character feature --- modules/shared.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 modules/shared.py diff --git a/modules/shared.py b/modules/shared.py new file mode 100644 index 00000000..2903ad97 --- /dev/null +++ b/modules/shared.py @@ -0,0 +1,13 @@ +# shared.py + +# Global variable to store the saved character +saved_character = None + +def save_character(character): + """Save a character description globally.""" + global saved_character + saved_character = character + +def get_saved_character(): + """Retrieve the saved character description.""" + return saved_character