aayRJ23 / ChatBot-JobDekho

Chatbot for job portal website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AskMeAnything Bot

Introduction

AskMeAnything Bot is a simple yet powerful chatbot application that allows users to interact and get responses to their queries. This application uses a Flask backend to serve a trained NLP model which generates responses to user inputs.

Features

  • Interactive Chat Interface: A user-friendly chat interface powered by React.
  • NLP Model Integration: Uses a trained NLP model to generate responses to user queries.
  • Flask Backend: A robust backend service to handle API requests and responses.
  • CORS Enabled: Cross-Origin Resource Sharing enabled to handle requests from different origins.
  • Error Handling: Graceful error handling for better user experience.

Usage

  1. Open the Chatbot: Click on the chatbot icon to open the chat window.
  2. Send a Message: Type your message in the input field and hit "Send".
  3. Get a Response: The bot will respond to your message using the trained NLP model.

How to Run

Prerequisites

  • Python 3.x
  • Flask

Installation Procedure

Backend Setup (Flask)

For Windows

  1. Clone the Repository

    Open Command Prompt or PowerShell and run:

    git clone https://github.com/yourusername/askmeanything-bot.git
    cd askmeanything-bot/backend
  2. Create and Activate Virtual Environment

    python -m venv venv
    venv\Scripts\activate
  3. Install Dependencies

    pip install -r requirements.txt
  4. Run the Flask Server

    set FLASK_APP=app.py
    flask run

    The server will start on http://127.0.0.1:5000.

For macOS

  1. Clone the Repository

    Open Terminal and run:

    git clone https://github.com/yourusername/askmeanything-bot.git
    cd askmeanything-bot/backend
  2. Create and Activate Virtual Environment

    python3 -m venv venv
    source venv/bin/activate
  3. Install Dependencies

    pip install -r requirements.txt
  4. Run the Flask Server

    export FLASK_APP=app.py
    flask run

    The server will start on http://127.0.0.1:5000.

Integration

Ensure that your Flask backend is running and accessible. The React app will send requests to the Flask server to get responses for user inputs.

Additional Information

  • Flask App: The Flask application handles incoming POST requests to the /predict endpoint, processes the input using the trained NLP model, and returns the predicted response.

Feel free to contribute to this project by opening issues or submitting pull requestsđź“Ť.

About

Chatbot for job portal website


Languages

Language:Python 95.2%Language:Cython 3.4%Language:C 0.8%Language:C++ 0.4%Language:Fortran 0.0%Language:Meson 0.0%Language:CSS 0.0%Language:JavaScript 0.0%Language:PowerShell 0.0%Language:Smarty 0.0%Language:Jupyter Notebook 0.0%Language:Shell 0.0%Language:Forth 0.0%Language:Batchfile 0.0%Language:Roff 0.0%Language:HTML 0.0%