Skip to content

Commit 02f97ff

Browse files
committed
minor fixes and updates
1 parent 0a2e5b9 commit 02f97ff

File tree

4 files changed

+678
-962
lines changed

4 files changed

+678
-962
lines changed

src/guidellm/utils/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
EndlessTextCreator,
3838
clean_text,
3939
filter_text,
40-
is_puncutation,
40+
is_punctuation,
4141
load_text,
4242
split_text,
4343
split_text_list_by_length,
@@ -67,7 +67,7 @@
6767
"check_load_processor",
6868
"clean_text",
6969
"filter_text",
70-
"is_puncutation",
70+
"is_punctuation",
7171
"load_text",
7272
"safe_add",
7373
"safe_divide",

src/guidellm/utils/text.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323

2424
from guidellm import data as package_data
2525
from guidellm.config import settings
26-
from guidellm.utils.console import Colors
26+
from guidellm.utils.colors import Colors
2727

2828
__all__ = [
2929
"MAX_PATH_LENGTH",
3030
"EndlessTextCreator",
3131
"clean_text",
3232
"filter_text",
3333
"format_value_display",
34-
"is_puncutation",
34+
"is_punctuation",
3535
"load_text",
3636
"split_text",
3737
"split_text_list_by_length",
@@ -268,7 +268,7 @@ def load_text(data: str | Path, encoding: str | None = None) -> str:
268268
return data.read_text(encoding=encoding)
269269

270270

271-
def is_puncutation(text: str) -> bool:
271+
def is_punctuation(text: str) -> bool:
272272
"""
273273
Check if a single character is a punctuation mark.
274274
@@ -332,7 +332,7 @@ def create_text(self, start: int, length: int) -> str:
332332
index = (start + counter) % len(self.words)
333333
add_word = self.words[index]
334334

335-
if counter != 0 and not is_puncutation(add_word):
335+
if counter != 0 and not is_punctuation(add_word):
336336
text += " "
337337

338338
text += add_word

0 commit comments

Comments
 (0)