sarim commited on
Commit
1cd8371
·
1 Parent(s): b417242

update chunk sixe

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=4000):
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)]