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

code shield notebook issue #70

Open
DGerhart opened this issue Dec 9, 2024 · 0 comments
Open

code shield notebook issue #70

DGerhart opened this issue Dec 9, 2024 · 0 comments

Comments

@DGerhart
Copy link

DGerhart commented Dec 9, 2024

in your template code shield notebook (https://github.com/meta-llama/PurpleLlama/blob/main/CodeShield/notebook/CodeShieldUsageDemo.ipynb) the existing code throws a Typeerror if it finds no issues. this can be fixed (really worked around) if you change this line " if len(result.issues_found) > 0:" to this "if result.issues_found and len(result.issues_found) > 0:"

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