Skip to main content

No project description provided

Project description

PyPI version License: MIT Downloads LinkedIn

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

etoile_pixtral_safety-2025.5.160702.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

etoile_pixtral_safety-2025.5.160702-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file etoile_pixtral_safety-2025.5.160702.tar.gz.

File metadata

File hashes

Hashes for etoile_pixtral_safety-2025.5.160702.tar.gz
Algorithm Hash digest
SHA256 5b17e2f2bca2fec16ae1eaae43c005c782d75c2da2f39754123bb1471955e3fb
MD5 6ae8598b16c2c8810a3de7ffa9333fe8
BLAKE2b-256 824ca130ead5e78a8c3a08f7e6d128553608cf541f3027d250abe1b66982d17a

See more details on using hashes here.

File details

Details for the file etoile_pixtral_safety-2025.5.160702-py3-none-any.whl.

File metadata

File hashes

Hashes for etoile_pixtral_safety-2025.5.160702-py3-none-any.whl
Algorithm Hash digest
SHA256 bfd99cb05959a6e3b79461d4dee2f08dba43fb252ecbc11a8faf4ddaccb03287
MD5 1bfbdb3d736815a4866c39fbd7e85710
BLAKE2b-256 5d5e55d71d485a027880d3429391da16b4348659daeed5ca67749a7cd65101fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page