We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Just upgraded from 0.6.2 to 0.71 and my script doesn't run anymore. I get the error:
ValueError: max() arg is an empty sequence
This is the function causing the issue:
def classify_content_by_speaker(content): doc = nlp(content) category = max(doc.cats, key=doc.cats.get) speaker = speaker_mapping.get(category, "Unknown Speaker") reason = f"Assigned to {speaker} based on LLM classification for category {category}." return {'speaker': speaker, 'reason': reason}
Downgrading back to 0.6.2 fixes the issue.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Just upgraded from 0.6.2 to 0.71 and my script doesn't run anymore. I get the error:
ValueError: max() arg is an empty sequence
This is the function causing the issue:
Downgrading back to 0.6.2 fixes the issue.
The text was updated successfully, but these errors were encountered: