Spaces:
Running
Running
Anthony G
commited on
Commit
·
60a302d
1
Parent(s):
9ff82a3
slight change
Browse files
app.py
CHANGED
@@ -75,7 +75,6 @@ def get_model_response(message: str, history: list[str]) -> str:
|
|
75 |
num_return_sequences=1,
|
76 |
eos_token_id=peft_tokenizer.eos_token_id,
|
77 |
max_length=600,
|
78 |
-
truncation=True,
|
79 |
)[0]
|
80 |
print(sequences["generated_text"])
|
81 |
output = sequences["generated_text"].split("<ASSISTANT>:")[-1].strip()
|
|
|
75 |
num_return_sequences=1,
|
76 |
eos_token_id=peft_tokenizer.eos_token_id,
|
77 |
max_length=600,
|
|
|
78 |
)[0]
|
79 |
print(sequences["generated_text"])
|
80 |
output = sequences["generated_text"].split("<ASSISTANT>:")[-1].strip()
|