NeonBohdan commited on
Commit
62b0d65
1 Parent(s): 5121484

Added use of biography

Browse files
Files changed (1) hide show
  1. utils.py +5 -1
utils.py CHANGED
@@ -79,7 +79,7 @@ class PersonaConverter:
79
  "You're attempting to provide a concise response within a 60-word limit.\n"
80
  )
81
 
82
- def __call__(self, name: str, figure: str, description: str, imaginary: bool, short: bool):
83
  system_prompt_list = []
84
  if (name != "None"):
85
  system_prompt_list.append(self.personas[name])
@@ -91,6 +91,10 @@ class PersonaConverter:
91
  if (len(description) != 0):
92
  system_prompt_list.append(f"{description}\n")
93
 
 
 
 
 
94
  if imaginary:
95
  system_prompt_list.append(self.imaginary)
96
 
 
79
  "You're attempting to provide a concise response within a 60-word limit.\n"
80
  )
81
 
82
+ def __call__(self, name: str, figure: str, description: str, biography: str, imaginary: bool, short: bool):
83
  system_prompt_list = []
84
  if (name != "None"):
85
  system_prompt_list.append(self.personas[name])
 
91
  if (len(description) != 0):
92
  system_prompt_list.append(f"{description}\n")
93
 
94
+ if (len(biography) != 0):
95
+ historical_figure = self.historical_figure_format.format(biography=biography)
96
+ system_prompt_list.append(historical_figure)
97
+
98
  if imaginary:
99
  system_prompt_list.append(self.imaginary)
100