Skip to content

Commit af0f510

Browse files
praveennhiremathprhirema
and
prhirema
authored
Food wine pairing build issue resolved (#403)
* 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>
1 parent 0d2252c commit af0f510

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grabdish/foodwinepairing-python/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RUN yum install -y tar && \
1818
python3.6 -m pip install -U pip setuptools
1919

2020
#wine-pairing dependencies
21-
RUN python3.6 -m pip install -U gensim && \
21+
RUN python3.6 -m pip install -U gensim==4.1.2 && \
2222
python3.6 -m pip install -U scikit-learn && \
2323
python3.6 -m pip install -U pandas && \
2424
python3.6 -m pip install -U nltk && \

0 commit comments

Comments
 (0)