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
Describe the bug
I've run the code in https://github.com/protectai/llm-guard/blob/main/examples/google_gemini.py in Google Colab
To Reproduce Steps to reproduce the behavior:
!pip install google-cloud-aiplatform --upgrade --user !pip install llm-guard
Expected behavior Something good should happen - you tell me :)
Screenshots If applicable, add screenshots to help explain your problem. Coming in next comment
Additional context
See below
First it said It was compiled with different version of numpy, so I've added this as suggested by Gemini:
!pip install --upgrade numpy
--------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-1-d5c52cca659e> in <cell line: 30>() 28 29 # Import Scanners from LLM Guard ---> 30 from llm_guard import scan_output, scan_prompt 31 from llm_guard.input_scanners import PromptInjection, TokenLimit, Toxicity 32 from llm_guard.output_scanners import NoRefusal, Relevance, Sensitive 14 frames /usr/local/lib/python3.10/dist-packages/thinc/backends/numpy_ops.pyx in init thinc.backends.numpy_ops() ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
First error - hopefully fixed by updating numpy (maybe exacerbated?)
No branches or pull requests
Describe the bug
I've run the code in https://github.com/protectai/llm-guard/blob/main/examples/google_gemini.py in Google Colab
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Something good should happen - you tell me :)
Screenshots
If applicable, add screenshots to help explain your problem.
Coming in next comment
Additional context
See below
first error
First it said It was compiled with different version of numpy, so I've added this as suggested by Gemini:
second error
The text was updated successfully, but these errors were encountered: