Update goai_helpers/goai_traduction.py
Browse files
goai_helpers/goai_traduction.py
CHANGED
@@ -9,7 +9,7 @@ max_length = 512
|
|
9 |
auth_token = os.getenv('HF_SPACE_TOKEN')
|
10 |
login(token=auth_token)
|
11 |
|
12 |
-
def split_text_intelligently(text, max_chunk_length=
|
13 |
"""
|
14 |
Divise le texte en chunks en respectant les phrases complètes.
|
15 |
"""
|
|
|
9 |
auth_token = os.getenv('HF_SPACE_TOKEN')
|
10 |
login(token=auth_token)
|
11 |
|
12 |
+
def split_text_intelligently(text, max_chunk_length=80):
|
13 |
"""
|
14 |
Divise le texte en chunks en respectant les phrases complètes.
|
15 |
"""
|