-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with PDF #38
Comments
managed to get chatgpt to help and produced this. it's working but is very slow: import re Function to split text into manageable chunksdef split_into_chunks(text, chunk_size): Function to summarize text contentdef summarize_text_content(text, text_inference):
Limit your summary to a maximum of 150 words. Text: {text} Summary:"""
Process a single text filedef process_single_text_file(args, text_inference, silent=False, log_file=None):
Process multiple text files sequentiallydef process_text_files(text_tuples, text_inference, silent=False, log_file=None): Generate metadata for textdef generate_text_metadata(input_text, file_path, progress, task_id, text_inference):
Limit the filename to a maximum of 3 words. Use nouns and avoid starting with verbs like 'depicts', 'shows', 'presents', etc. Summary: {trimmed_description} Examples:
Now generate the filename. Output only the filename, without any additional text. Filename:"""
This will be used as the folder name. Limit the category to a maximum of 2 words. Use nouns and avoid verbs. Summary: {trimmed_description} Examples:
Now generate the category. Output only the category, without any additional text. Category:"""
|
I receive this error:
TypeError: cannot unpack non-iterable NoneType object
The text was updated successfully, but these errors were encountered: