Spaces:
Runtime error
Runtime error
Switched the list joiner to not lowercase the inputs
Browse files- src/common.py +2 -2
src/common.py
CHANGED
@@ -19,11 +19,11 @@ def hf_api_token() -> str:
|
|
19 |
return token
|
20 |
|
21 |
|
22 |
-
def
|
23 |
"""
|
24 |
Utility to convert a list of items to lowercase strings, comma separated and ending with and
|
25 |
"""
|
26 |
-
items = [str(i).
|
27 |
string_count = len(items)
|
28 |
if string_count == 0:
|
29 |
return ""
|
|
|
19 |
return token
|
20 |
|
21 |
|
22 |
+
def join_items_comma_and(items: List[str]) -> str:
|
23 |
"""
|
24 |
Utility to convert a list of items to lowercase strings, comma separated and ending with and
|
25 |
"""
|
26 |
+
items = [str(i).strip() for i in items]
|
27 |
string_count = len(items)
|
28 |
if string_count == 0:
|
29 |
return ""
|