Skip to content

Collaborated with my mentor from State Farm to develop a facial-emotion-detecting chatbot using TensorFlow and Keras, integrated with a Streamlit interface, as part of AI research exploring neural networks and image generation concepts.

Notifications You must be signed in to change notification settings

RohitPenna/ISM_Final_Product

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Collaborated with my mentor from State Farm to develop a facial-emotion-detecting chatbot using TensorFlow and Keras, integrated with a Streamlit interface, as part of AI research exploring neural networks and image generation concepts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published