Skip to content

linusaltacc/FitnessCoach-ChatBot

Repository files navigation

Fitness Coach Chatbot

This project aims to create a chatbot using Chat APIs integrating with GPT(GPT-3.5-turbo)/ GPT3 (text-davinci-003)/ VertexAI (chat-bison@001) that can help users with their fitness goals like being their personal fitness trainer. The chatbot can provide suggestions related to exercise routines, diet plans, and more based on the users' fitness goals.

Prerequisites

Before getting started with the project, you will need to have an OpenAI API or Vertex AI API key. You can get the key by signing up on the OpenAI's website for OpenAI key and for Vertex AI visit Google Cloud. Once you have an API key, you can integrate it with the Streamlit interface.

Integration

  • Install the requirements by:
pip install -r requirements.txt
  • using OpenAI API or Vertex AI API

OpenAI API

  • Once all the requirement libraries are installed, create a file called apikey.py

  • Declare a varibale named openai_api_key with API key value.

echo "openai_api_key = '<Enter your OpenAI Key here>' " > apikey.py

< or >

Google Vertex AI API

  • Download service_account.json from your google cloud account and place it in the root directory of the project.

Running the Streamlit App

Run the Streamlit app using the following command:

streamlit run chatbot.py

The app should now be running on your localhost.

localhost:8501

Demo Screenshots

Here are some screenshots of the chatbot in action:

Screenshot 1

Screenshot 2

Screenshot 3

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages