Skip to content
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

TypeError: unsupported operand type(s) for +: 'set' and 'set' #22

Open
VivekCs181066 opened this issue Nov 12, 2024 · 0 comments
Open

Comments

@VivekCs181066
Copy link

When I try to run the local classifier without making an LLM called the following line results in an error:

https://github.com/tryolabs/restricttotopic/blob/main/validator/main.py#L360
TypeError: unsupported operand type(s) for +: 'set' and 'set'

Which I believe is a simple fix from

candidate_topics = model_input["valid_topics"] + model_input["invalid_topics"]
to

candidate_topics = list(model_input["valid_topics"]) + list(model_input["invalid_topics"])
please make the change so that it works in deployed version also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant