Spaces:
Running
Running
improvement
Browse files
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 =
|
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])
|