Skip to content

Latest commit

 

History

History
81 lines (61 loc) · 2.94 KB

README.md

File metadata and controls

81 lines (61 loc) · 2.94 KB

ISM_Final_Product

Interactive Chatbot with Real-Time Emotional Analysis/Integration

Usage

  • Clone this repository

  • Enter the commands:

    • Make a virtual environment: python -m venv .venv

    • Activate it (for Windows command prompt): .venv\Scripts\activate

    • pip install requirements.txt -r

    • Open an OpenAI account at https://platform.openai.com/account/org-settings

    • Add a .env file to the top level directory with the following environment variables.

      OPENAI_API_KEY=xxxx
      OPENAI_ORG_NAME=xxxxx
      
    • cd src/

    • streamlit run app.py

User Stories

  • A user would like to be able to start up an app and talk to a chatbot that can percieve their emotions in real-time.

Technology Stack

Inspiration Repos/Articles

Huggingface

Page Breakdown

  • Main page
    • Continuous Webcam Viewport (Potentially with a start and stop button)
    • Text Input/Output textbox with a submit button

Implementation

  • User Data
    • Detected Emotion
    • Prompt/Prompt History
  • User Interaction
    • Buttons for camera start and stop
    • Button to submit prompt
  • API Calls
    • Emotion Detection Model to get detected emotion
    • Large Language Model to get response to do something with the detected emotion

TODO

  • Flip the conversation history to show most recent messages first
  • Make the form input chat text clear on change.
  • figure out how to continuously grab the video image to pipe into another emotion detection api
  • figure out how to continuously update state with the emotion dictionary and wire it up to the chatbot prompt with the average since last updated.