Spaces:
Running
Running
update chunk sixe
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ last_message = ''
|
|
| 18 |
|
| 19 |
model = GroqModel('llama-3.1-70b-versatile', api_key = api_key)
|
| 20 |
|
| 21 |
-
def split_long_string(long_string, chunk_size=
|
| 22 |
string_data = "".join(long_string)
|
| 23 |
words = string_data.split()
|
| 24 |
chunks = [' '.join(words[i:i + chunk_size]) for i in range(0, len(words), chunk_size)]
|
|
|
|
| 18 |
|
| 19 |
model = GroqModel('llama-3.1-70b-versatile', api_key = api_key)
|
| 20 |
|
| 21 |
+
def split_long_string(long_string, chunk_size=3500):
|
| 22 |
string_data = "".join(long_string)
|
| 23 |
words = string_data.split()
|
| 24 |
chunks = [' '.join(words[i:i + chunk_size]) for i in range(0, len(words), chunk_size)]
|