dar-tau commited on
Commit
41f6c93
·
verified ·
1 Parent(s): 28d873f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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': system}]
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)