mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-29 18:26:37 +08:00
nit
This commit is contained in:
parent
d8ca500136
commit
d7775e67a6
@ -193,7 +193,7 @@ class BPEStreamingDetokenizer(StreamingDetokenizer):
|
||||
self.tokens = []
|
||||
|
||||
def _maybe_trim_space(self, current_text):
|
||||
if len(current_text) < 1 or current_text is None:
|
||||
if len(current_text) == 0:
|
||||
return current_text
|
||||
elif current_text[0] != " ":
|
||||
return current_text
|
||||
|
Loading…
Reference in New Issue
Block a user