Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -55,11 +55,8 @@ def chat_function(Message, Length_of_the_answer, Who_is_next, Base_to_On_subject
|
|
55 |
top_k=50,
|
56 |
top_p=0.9,
|
57 |
temperature = float(Base_to_On_subject_temperature), # 0 for greedy
|
58 |
-
mask_token_id=tokenizer.mask_token_id,
|
59 |
eos_token_id=tokenizer.eos_token_id,
|
60 |
-
|
61 |
-
pad_token_id=tokenizer.pad_token_id,
|
62 |
-
device='cpu'
|
63 |
)
|
64 |
|
65 |
response = tokenizer.decode(chat_history_ids[:, input_len:][0], skip_special_tokens=True)
|
|
|
55 |
top_k=50,
|
56 |
top_p=0.9,
|
57 |
temperature = float(Base_to_On_subject_temperature), # 0 for greedy
|
|
|
58 |
eos_token_id=tokenizer.eos_token_id,
|
59 |
+
pad_token_id=tokenizer.pad_token_id
|
|
|
|
|
60 |
)
|
61 |
|
62 |
response = tokenizer.decode(chat_history_ids[:, input_len:][0], skip_special_tokens=True)
|