Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rest api with flask #1

Open
ghost opened this issue May 7, 2021 · 2 comments
Open

rest api with flask #1

ghost opened this issue May 7, 2021 · 2 comments

Comments

@ghost
Copy link

ghost commented May 7, 2021

Hi @abhijitpai000 ,

Hope you are all well !

I was wondering if we could not create a flask rest api for your repository, it woud be awesome to compute data from e-commerce cms like Prestashop or Magento2.

What do you think about it ? How complicated it would be ?

Thanks for any insights or inputs on that.

Cheers,
Luc Michalski

@abhijitpai000
Copy link
Owner

abhijitpai000 commented May 23, 2021

Hi @lucmichalski, I'm not quite sure if I understand your request entirely but I'll try to answer.

  • You can create a rest API using the pickle file customer_lifetime_estimator in the src/models/ directory of the repo, feel free to utilize the implementation of using the pickle file in the src/predict.py to make the estimates.
  • The implementation in this repo is specific to the Olist Public dataset, you'd have to work around that for Prestashop or Magneto2 data.

I hope this answers your questions, and feel free to let me know if you'd like to collaborate on creating the rest api or implementing CLV for Prestashop or Magento2.

Regards,
Abhijit Pai

@ghost
Copy link
Author

ghost commented May 24, 2021

@abhijitpai000 yeah, that would be awesome if could dockerize a rest api and create a prestashop module.

I can create the module :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant