ClaudiaIoana550
commited on
Commit
•
588e93d
1
Parent(s):
da472c7
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -23,7 +23,7 @@ class StopGenerationCriteria(StoppingCriteria):
|
|
23 |
self.max_repeated_words = max_repeated_words
|
24 |
|
25 |
def __call__(self, input_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs) -> bool:
|
26 |
-
tokenizer=AutoTokenizer.from_pretrained("ClaudiaIoana550/
|
27 |
generated_sequence = input_ids.tolist()
|
28 |
|
29 |
if len(generated_sequence[0]) >= 50:
|
|
|
23 |
self.max_repeated_words = max_repeated_words
|
24 |
|
25 |
def __call__(self, input_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs) -> bool:
|
26 |
+
tokenizer=AutoTokenizer.from_pretrained("ClaudiaIoana550/try2_deploy_falcon", trust_remote_code=True)
|
27 |
generated_sequence = input_ids.tolist()
|
28 |
|
29 |
if len(generated_sequence[0]) >= 50:
|