Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ Assistant: "girlfriend;mother;father;friend"
|
|
38 |
|
39 |
@spaces.GPU
|
40 |
def get_past_key_values(system_prompt):
|
41 |
-
messages = [{'role': 'system', 'content':
|
42 |
tokenized = tokenizer.apply_chat_template(messages, return_tensors='pt')
|
43 |
|
44 |
# assert that this is indeed a prefix (TODO: make sure this is robust)
|
|
|
38 |
|
39 |
@spaces.GPU
|
40 |
def get_past_key_values(system_prompt):
|
41 |
+
messages = [{'role': 'system', 'content': system_prompt}]
|
42 |
tokenized = tokenizer.apply_chat_template(messages, return_tensors='pt')
|
43 |
|
44 |
# assert that this is indeed a prefix (TODO: make sure this is robust)
|