Skip to content

Kushan2k/prediction-api-using-flask-python

Repository files navigation

User Classification and Image Classification API

Python,Flask deployed on GCP

  1. Clone the repository:
git clone https://github.com/your-username/solo-traveller-api.git
  1. Navigate to the project directory:
cd solo-traveller-api

Installation

  1. Create a virtual environment:

    python3 -m venv env
  2. Activate the virtual environment:

    source env/bin/activate  # Linux/macOS
    env\Scripts\activate  # Windows
  3. Install dependencies:

    pip install -r requirements.txt
  4. Set up environment variables:

    • Create a .env file in the project root directory.

    • Add the following environment variables:

       CONNECTION_STRING=
       PASSWORD=
       USERNAME=
       TF_ENABLE_ONEDNN_OPTS=
       PORT=
       DEBUG=
      
      
  5. Run the application:

    python app.py

Usage

The API provides the following endpoints:

  • /: save user informations.
  • /upload: image classification for upload image and get the recommneted categories and stores.
  • /predict: predict the user category and return the predicted stores and recomendations.

Contributing

Contributions are welcome! Please submit a pull request with your changes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Thank you

About

API built using python flask,flask restfull for predicting user recomendations and image classification

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages