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

Small bug when running local inference #19

Open
billlyzhaoyh opened this issue Oct 23, 2024 · 0 comments
Open

Small bug when running local inference #19

billlyzhaoyh opened this issue Oct 23, 2024 · 0 comments

Comments

@billlyzhaoyh
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"])

happy to raise a PR to help out

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