sarim commited on
Commit
2d555eb
·
1 Parent(s): 9fbe496

improvement

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -33,7 +33,7 @@ model = GroqModel('llama-3.1-70b-versatile', api_key = api_key)
33
 
34
 
35
 
36
- def split_into_token_chunks(text: str, max_tokens: int = 700) -> list:
37
  """
38
  Splits a long string into chunks of a specified maximum number of tokens (words).
39
 
@@ -93,6 +93,7 @@ async def ppt_content(data):
93
  message_history.pop()
94
  message_history.pop()
95
  message_history.pop()
 
96
  message_history = result.all_messages()
97
  result_data.append(result.data)
98
  print(result_data[-1])
 
33
 
34
 
35
 
36
+ def split_into_token_chunks(text: str, max_tokens: int = 1000) -> list:
37
  """
38
  Splits a long string into chunks of a specified maximum number of tokens (words).
39
 
 
93
  message_history.pop()
94
  message_history.pop()
95
  message_history.pop()
96
+ message_history.pop()
97
  message_history = result.all_messages()
98
  result_data.append(result.data)
99
  print(result_data[-1])