Code Monkey home page Code Monkey logo

mahhheshh / mentorgpt Goto Github PK

View Code? Open in Web Editor NEW
12.0 0.0 4.0 1.16 MB

MentorGPT is a web application that uses a chatbot to answer questions about the Python, Data Science, Machine Learning. The chatbot is connected to OpenAI's GPT-3 API. The application is built using Python, Flask and Vue.

License: MIT License

Python 40.18% HTML 7.37% JavaScript 2.45% Vue 47.00% TypeScript 2.45% CSS 0.54%
flask flask-api flask-application flask-restful gpt-3 openai-api python3 vue3 server-side-events

mentorgpt's Introduction

Virtual-Mentor

Table of Contents

About

MentorGPT is a web application that uses a chatbot to answer questions about the Python, Data Science, Machine Learning. The chatbot is connected to OpenAI's GPT-3 API. The application is built using Python, Flask and Vue.

Setting up the environment

You should have the following installed on your machine:

  • python 3.10
  • flask 2.2.3
  • flask-cors 3.0.10

Running the application

  • Clone the repository
git clone https://github.com/Mahhheshh/MenotGPT.git
  • Create a virtual environment
pip install pipenv 
pipenv shell
  • Install the dependencies
pipenv install
  • Run the application
python main.py
  • Open the application in your browser
http://localhost:5000/

application routes

  • GET /
http://localhost:5000/
  • POST /ask
http://localhost:5000/ask

API Documentation

  • POST /ask, request body
{
    "question": "What is difference between lists and tuPle"
}
  • POST /ask, response body
    Returns a stream of data using Server-Sent Events.

setting up the environment(frontend)

  • Install the dependencies
cd frontend
npm install
  • Run the application
npm run dev -- --open 

To-Do

  • beautify the UI

Contributors

Contributions are welcome. Please open an issue or submit a pull request.

License

MIT

made with ❤️ by Mahesh

mentorgpt's People

Contributors

mahhheshh avatar ruchiket100 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mentorgpt's Issues

Beautifying Vue.js Interface

currently, Ui looks like this. The goal is to beautify the UI without changing the base layout.
The answers to the question are shown on the right side of the webpage.
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.