Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: Can only be used with environment variable

Boosting CV-LLM sentiment

https://img.shields.io/pypi/v/boosting_cv_llm_sentiment.svg https://img.shields.io/travis/ToroData/boosting_cv_llm_sentiment.svg Documentation Status

Boosting CV-LLM Sentiment is a Python library that fuses computer vision and natural language processing capabilities to enhance human-computer interactions with language model systems. Leveraging OpenCV, the framework detects emotions and facial expressions in real-time, tagging the identified sentiments. These sentiment tags are then fed as metadata into a Large Language Model (LLM) to inform and shape text generation, enabling conversational empathy adaptability. This innovative approach enhances LLMs’ ability to produce more meaningful and context-aware responses, fostering more natural and human-like interactions across various applications, from virtual assistants to customer feedback analysis.

Features

  • Real-time facial emotion detection using OpenCV.

  • Integration with Large Language Models for context-aware text generation.

  • Enhances conversational AI with a layer of emotional intelligence.

  • Easy to integrate into existing Python projects with language model requirements.

Installation

To install Boosting CV-LLM Sentiment, run this command in your terminal:

pip install boosting_cv_llm_sentiment

This is the preferred method to install Boosting CV-LLM Sentiment, as it will always install the most recent stable release.

Setting up the OpenAI API Key

  1. Find Your API Key: First, locate your API key from your OpenAI account under API settings.

  2. Configure the Key in Your Environment:

    • On Unix/Linux/macOS: Open your terminal and run the following command, replacing YOUR_API_KEY with your actual OpenAI API key:

      export OPENAI_API_KEY="YOUR_API_KEY"

      To make this change permanent, you can add the command to your ~/.bashrc, ~/.zshrc, or the configuration file of your shell.

    • On Windows: Open Command Prompt as an administrator and run:

      setx OPENAI_API_KEY "YOUR_API_KEY"

      Alternatively, you can set the environment variable through the System Properties. Search for “Edit the system environment variables” in the Start menu, click on “Environment Variables”, and then add a new variable under “User variables” with the name OPENAI_API_KEY and your actual key as the value.

Verifying the Configuration

You can verify that your API key is set up correctly by running the following command in your terminal or Command Prompt:

  • Unix/Linux/macOS:

    echo $OPENAI_API_KEY
  • Windows:

    echo %OPENAI_API_KEY%

If the command prints your API key, then you’re all set.

Please ensure you keep your API key secure and do not share it publicly.

Usage

After installation, you can start using Boosting CV-LLM Sentiment by importing it and initializing the main classes:

from boosting_cv_llm_sentiment.emoboostllm import EmoBoostLLM

# Initialize and run the application
app = EmoBoostLLM(webcam_index=0)
app.run()

Refer to the documentation for more detailed usage instructions.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2024-03-24)

  • First release on PyPI.

Metadata

Release files for boosting-cv-llm-sentiment 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for boosting-cv-llm-sentiment 0.1.1
File Size Uploaded
boosting_cv_llm_sentiment-0.1.1.tar.gz 23.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for boosting-cv-llm-sentiment 0.1.1
File Interpreter ABI Platform
boosting_cv_llm_sentiment-0.1.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 40.2 kB

Release files / boosting_cv_llm_sentiment-0.1.1.tar.gz

Download URL boosting_cv_llm_sentiment-0.1.1.tar.gz
Size 23.3 kB
Tags Source
SHA-256 checksum
How to use checksums
797199d0aed2a0d68615e2630c8a0bbfade3f6a41617316effff62ae3a2b8801
BLAKE2b-256 checksum
How to use checksums
fea9dd2b2915c7f811a4b0096314293b6c438fead2d8ac9760340d435019ddcd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.7

Release files / boosting_cv_llm_sentiment-0.1.1-py2.py3-none-any.whl

Download URL boosting_cv_llm_sentiment-0.1.1-py2.py3-none-any.whl
Size 16.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
7379cd2d55e6521ac3b9fd4b0e7a39c5bf510e49a324300a348d76f5e7d86faf
BLAKE2b-256 checksum
How to use checksums
2acdad4f8080f3446600dd88c68fd9d32adfecae68ce9c5fb51915a70e062311
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.7

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page