hassoonsy2 / PepperGPT

Welcome to the Hublab project repository! This innovative project is centered around integrating Pepper, a friendly humanoid robot, into the HUB-lab environment to serve as an interactive assistant for visitors. The HUB-lab, located within the HU library.
https://bibliotheek.hu.nl/HUB-Lab/
MIT License
4 stars 0 forks source link

Pepper GPT

Peper

Description:

Welcome to the Hublab project repository! This innovative project is centered around integrating Pepper, a friendly humanoid robot, into the HUB-lab environment to serve as an interactive assistant for visitors. The HUB-lab, located within the HU library, is a dynamic space that offers access to cutting-edge technologies such as Virtual Reality, Robotics, Gamification, and Artificial Intelligence.

Our mission is to enhance the visitor experience in two significant ways:

Human-Robot Interaction: We aim to explore and improve how visitors interact with technology, specifically through their engagement with Pepper. This component focuses on assessing participants' attitudes towards technology and refining Pepper's conversational abilities. By incorporating gestures and movements, we strive to make interactions not only more engaging but also more informative. Technical Development: For those with a technical inclination, this aspect of the project involves enhancing Pepper's ability to understand and respond to visitor inquiries. We're exploring the integration of advanced AI solutions, including ChatGPT, to enable Pepper to provide accurate and helpful information about the lab's resources and how to utilize various technologies. This will be particularly beneficial in workshop settings, where Pepper can assist participants more effectively. Project Goals:

Code

The code interfaces OpenAI GPT-3 with the Aldebaran Pepper and Nao robots, allowing open verbal conversation with these robots on a wide range of subjects.

Video of the Result

ToDO

Installation

PepperGPT depends on the NaoQi software to interface with the Pepper and Nao robots, and the OpenAI API to interface with GPT-3. Please refer to the detailed setup instructions below for your preferred operating system.

Setup for Windows

NaoQi is old and runs on Python 2.7 while OpenAI requires Python 3. We therefore need both Python versions installed. Here's a step by step guide for setup on Windows 11.

  1. Make sure Python 3.x is installed on the system.
  2. Install Python 2.7. Select the 32 bit msi installer.
  3. Add C:\Python27 to the environment PATH.
  4. Open a terminal and verify that python refers to Python2.7 and python3 refers to your Python 3.x distribution.
  5. Install Ollama
  6. after installing ollama start a power shell and install the Phi3 model ollama pull phi3:mini
  7. Then you can test the model using ollama run phi3:mini

Now we need a few of dependencies:

We will use VS Code to run things, you may also use another environment if you prefer.

Now we need the Python NaoQi API for communicating with the Pepper robot.

Finally, we are ready to check out the repository.

Setup for OSX and Linux

NaoQi is old and runs on Python 2.7 while OpenAI requires Python 3.

  1. Open a terminal and verify that python2 refers to Python2.7 and python3 refers to your Python 3.x distribution. If any of them are missing, please install through your preferred package manager.

Now we need a few of dependencies:

We are now ready to check out the repository:

We will use VS Code to run things, you may also use another environment if you prefer.

Now we need the Python NaoQi API for communicating with the Pepper robot.

I haven't been able to make Choreographe to run on recent versions of OSX, but it's not needed for running this app.

Run

Make sure you've gone through all steps in the Setup guide above before you start.

Note that the Speech recognition module uses a NaoQi (Autonomous Life Proxy) to switch focus to nao_focus. You may not have this script on your own robot and the the code will throw an exception as a result. This call is made solely to prevent the default dialogue system of the robot to interfere with PepperChat. You may safely comment this away or upload your own preferred focus script to the robot, e.g. using Choreograph.

License

This project is released under the MIT license. Please refer to LICENSE.md for license details.

Parts of the source code have specific license formulations. Please see the file headers for details.


Importent Links :