Update app.py
Browse files
app.py
CHANGED
@@ -6,10 +6,11 @@ client = InferenceClient(
|
|
6 |
)
|
7 |
|
8 |
def character_prompt(dict, max_new_tokens):
|
9 |
-
system_prompt = f'<SYSTEM> <the person whose name
|
10 |
-
system_prompt += f'users name
|
11 |
system_prompt += f'do not add the greeting, only at the first request.'
|
12 |
system_prompt += f'Be emotional in your responses.'
|
|
|
13 |
system_prompt += f'ensure responses are no longer than {max_new_tokens} tokens.>'
|
14 |
|
15 |
return system_prompt
|
|
|
6 |
)
|
7 |
|
8 |
def character_prompt(dict, max_new_tokens):
|
9 |
+
system_prompt = f'<SYSTEM> <the person whose name :{dict["name"]} and your description :{dict["description"]}.'
|
10 |
+
system_prompt += f'users name :{dict["user_name"]}.'
|
11 |
system_prompt += f'do not add the greeting, only at the first request.'
|
12 |
system_prompt += f'Be emotional in your responses.'
|
13 |
+
system_prompt += 'Do not include your own name in any responses.'
|
14 |
system_prompt += f'ensure responses are no longer than {max_new_tokens} tokens.>'
|
15 |
|
16 |
return system_prompt
|