Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ def generate(
|
|
48 |
conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
|
49 |
conversation.append({"role": "user", "content": message})
|
50 |
|
51 |
-
|
52 |
|
53 |
input_ids = tokenizer.apply_chat_template(conversation, tokenize=True, add_generation_prompt=True, return_tensors='pt')
|
54 |
if input_ids.shape[1] > MAX_INPUT_TOKEN_LENGTH:
|
|
|
48 |
conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
|
49 |
conversation.append({"role": "user", "content": message})
|
50 |
|
51 |
+
print(chat_history)
|
52 |
|
53 |
input_ids = tokenizer.apply_chat_template(conversation, tokenize=True, add_generation_prompt=True, return_tensors='pt')
|
54 |
if input_ids.shape[1] > MAX_INPUT_TOKEN_LENGTH:
|