Spaces:
Build error
Build error
update token from 500-3500
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ def call_openai_api(openaiobj,transcription):
|
|
| 41 |
return response.choices[0].message.content
|
| 42 |
|
| 43 |
|
| 44 |
-
def split_into_chunks(text, tokens=
|
| 45 |
encoding = tiktoken.encoding_for_model('gpt-3.5-turbo')
|
| 46 |
words = encoding.encode(text)
|
| 47 |
chunks = []
|
|
|
|
| 41 |
return response.choices[0].message.content
|
| 42 |
|
| 43 |
|
| 44 |
+
def split_into_chunks(text, tokens=3500):
|
| 45 |
encoding = tiktoken.encoding_for_model('gpt-3.5-turbo')
|
| 46 |
words = encoding.encode(text)
|
| 47 |
chunks = []
|