Git Product home page Git Product logo

onlineproductlisting's Introduction

Mentioning the points as discussed:

  1. For the data extraction, the user will input the data in two parts a. List of search products separated by semicolon b. Top 'n' products to be searched
  2. After getting the user inputs, the api call will be made which will generate the data in the form of dict like {"searchedProductName": "Hair Oil", "GeneratedProductTitle": "To be generated", "GeneratedProductDescription": "To be generated", "keywords": "[list of keywords]"}
  3. At last the user will check and proceed with updating the listed product data or export the table data into excel sheel.

In the above second step, it will consist of mutiple steps:

  1. The excel will be generated with the extracted product data.
  2. The data will be grouped according to the searched product name.
  3. The product title and description data will be combined to single data.
  4. The brand name will be extracted from the data and which will be removed from above combined data.
  5. The noise and stop words will be removed from above data.
  6. Using BERT algorithm, the keywords will be generated in the form of lists.
  7. Now this list of keywords will be used to generate title and description using chatpGPT.

Online Product Listing

OPL extracts information about the similar products and generates the best listing of the products.

How to run

Setup the virtual environment

python3 -m venv venv pip install -r requierments.txt

Run as standalone executable

python app.py -h # run in headless mode

OR

python app.py -u # prints usage

Run as centralised API

python main.py -h # Headless mode (preferred)

Use -v flag to run in verbose/debug mode python -v main.py -h

OR

python main.py # Run with browser - use for debugging

Run as centralised API in monitored mode

pm2 start ecosystem.config.js

Checks Status in monitored mode

pm2 status

Check Logs in monitored mode

pm2 logs

Monitoring centralised API in monitored mode

pm2 monit

Stopping centralised API in monitored mode

pm2 stop "opl api"

Swagger UI

Swagger UI is available only in test / debug mode. Access URL - localhost:5000/api/v1/ui/ to test the API.

Build and run containers

Build the container

docker build -t opl-api-img-04052023 . 

Run the container

For development

docker run --rm -v $(pwd)/logs:/app/logs -v $(pwd)/config:/app/config -v $(pwd)/controllers:/apps/controllers:ro -v $(pwd)/utils:/apps/utils:ro -d -p 5000:5432 opl-api-img-04052023

For production

docker run --rm -v $(pwd)/logs:/app/logs -d p 5000:5432 opl-api-img-04052023

References

onlineproductlisting's People

Contributors

vatsaaa avatar manil-007 avatar

Watchers

James Cloos avatar  avatar

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.