Skip to content

Commit

Permalink
Food wine pairing build issue resolved (#403)
Browse files Browse the repository at this point in the history
* Added the print statement to check the execution flow.

* Changes for Food and Wine Pairing Module

* New Python Project for Food Wine Pairing - AI/ML

Added a service for Food Wine pairing.
Calling service from InventoryServiceOrderEventConsumer.
Service finds the suitable wines for the Food item and send the recommendedWines to user.

* Added sk-learn library and changed python to 3.7

* Given permission to sh files before commiting and deleted unnecessary files.

* added sh files of 777 permissions from Paul.

* install python 3.7 - Docker file updated

* install python using apt

* removed rm yum

* Added RUN each line to know the exact line errors

* removed sudo in Docker file and added apt-get update

* changed python3.7 to python.

* changed python version to initial one 3.6

* removed python-oci-sdk

* updated with python 3.7 workaround

* removed FROM oraclelinux:7-slim, added FROM ubuntu:18.04, to resolve apt issue

* set python 3.7 as defaukt

* fetched the latest code and updated foodwinepairing deployment yaml file

* returned no wines suggested

* initialized client with client builder

* added kubectl apply in deploy.sh

* changed hostname to localhost

* reverted url.

* cleared DB related stuffs in deployment yaml file

* cleared non-required configs from deployment yaml file

* added cx_oracle

* imported WineFoodPairings file in app.py

* added install pandas and numpy

* added nltk

* added matplotlib

* added ipython

* Assigned input to test food

* Fixed the issues which were there in 1st working version

* Added foodwinepairing-python in undeploy.sh

* Added the config for calling foodwinepairing service

* Added isSuggestiveSaleAIEnabled config in inventory-helidon deployment yaml

* corrected indentation of isSuggestiveSaleAIEnabled value

* added the same content from main branch to resolve conflicts

* added  foodwinepairing-python

* removed  foodwinepairing-python

* Added  foodwinepairing-python after resolving conflict

* removed the sysout statements

* removed foodwinepairing-python from grabdish/deploy.sh

* Stopwords and Tokenizers config kept only for English. Removed for other languages.

* Revert "Stopwords and Tokenizers config kept only for English. Removed for other languages."

This reverts commit 4b203c1.

* Removed the non-english stopwords and tokenizers which are used during model creation

* Optimized the food wine pairing build.

Using the oraclelinux:7-slim, python 3.6
Removed redundant software installtion like numpy(comes in gensim only)

* created the folder and file for workshop

* updated gensim version to 4.1.2

Co-authored-by: prhirema <prhirema@PRHIREMA-IN.oradev.oraclecorp.com>
  • Loading branch information
praveennhiremath and prhirema authored May 9, 2022
1 parent 0d2252c commit af0f510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grabdish/foodwinepairing-python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN yum install -y tar && \
python3.6 -m pip install -U pip setuptools

#wine-pairing dependencies
RUN python3.6 -m pip install -U gensim && \
RUN python3.6 -m pip install -U gensim==4.1.2 && \
python3.6 -m pip install -U scikit-learn && \
python3.6 -m pip install -U pandas && \
python3.6 -m pip install -U nltk && \
Expand Down

0 comments on commit af0f510

Please sign in to comment.