improve docs

This commit is contained in:
Lianmin Zheng
2024-02-05 11:22:06 +00:00
parent 26f0bedc8f
commit 8ff870bf3e
2 changed files with 5 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ def character_maker(lm, name):
regex_str_no_quote = r"[\w\d\s]+"
regex_float = r"[0-9]+\.[0-9]+"
lm += f"""\
{name} is a character in Harry Potter. Please fill in the following information about him/her.
{name} is a character in Harry Potter. Please fill in the following information about this character.
{{
"name": "{guidance.gen("name", max_tokens=16, regex=regex_str_no_quote)}",
"house": "{guidance.select(options=['Gryffindor', 'Slytherin', 'Ravenclaw', 'Hufflepuff'], name='house')}",