etoile_pixtral_safety
etoile_pixtral_safety is a Python package developed as part of the Mistral Étoile project during the London Hackathon. This package provides tools for detecting various types of potentially harmful content in images using advanced machine learning models, tailored specifically for online safety and content monitoring.
Installation
To install etoile_pixtral_safety, use pip:
pip install etoile_pixtral_safety
Usage
This package contains functions to check for harmful content and locate specific sections within images that may contain undesirable elements. It utilizes LangChain and HuggingFace technologies for deep learning inference.
Setting Up the Model
from langchain_mistralai import ChatMistralAI
CVISION_MODEL = "pixtral-12b-2409"
llm = ChatMistralAI(
model=CVISION_MODEL,
temperature=0,
max_retries=2,
)
Checking for Harmful Content
from etoile_pixtral_safety import check_image
# `display_url` should be a string containing the URL to the image you want to check.
display_url = "https://example.com/path/to/image.jpg"
result = check_image(llm, display_url, verbose=True)
print(result)
Finding Location of Harmful Content
from etoile_pixtral_safety import find_location
result = find_location(llm, display_url, verbose=True)
print(result)
Features
- Detects a wide range of harmful content in images including explicit material, violence, and other undesirable elements.
- Provides precise location data for identified content within images.
- Integrates seamlessly with state-of-the-art machine learning platforms.
Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
License
etoile_pixtral_safety is licensed under the MIT License.
Acknowledgements
This package was developed by Evgenii (Eugene) Evstafev as part of the comprehensive suite of tools for the Mistral Étoile project at the London Hackathon. More details about the project can be found on the GitHub repository.
Metadata
Release files for etoile-pixtral-safety 2025.5.160702
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| etoile_pixtral_safety-2025.5.160702.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| etoile_pixtral_safety-2025.5.160702-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.3 kB
Release files / etoile_pixtral_safety-2025.5.160702.tar.gz
| Download URL | etoile_pixtral_safety-2025.5.160702.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b17e2f2bca2fec16ae1eaae43c005c782d75c2da2f39754123bb1471955e3fb
|
|
BLAKE2b-256 checksum How to use checksums |
824ca130ead5e78a8c3a08f7e6d128553608cf541f3027d250abe1b66982d17a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.11
|
Release files / etoile_pixtral_safety-2025.5.160702-py3-none-any.whl
| Download URL | etoile_pixtral_safety-2025.5.160702-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bfd99cb05959a6e3b79461d4dee2f08dba43fb252ecbc11a8faf4ddaccb03287
|
|
BLAKE2b-256 checksum How to use checksums |
5d5e55d71d485a027880d3429391da16b4348659daeed5ca67749a7cd65101fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.11
|