diff --git a/body_performance.py b/body_performance.py index 9f8dd21..f821b4c 100644 --- a/body_performance.py +++ b/body_performance.py @@ -10,7 +10,10 @@ import seaborn as sns from sklearn.model_selection import train_test_split from sklearn.preprocessing import MinMaxScaler -df = pd.read_csv(r'.\body_performance.csv') +try: + df = pd.read_csv(r'.\body_performance.csv') +except: + df = pd.read_csv(r'./body_performance.csv') df['BMI'] = df['weight_kg']/(0.0001*df['height_cm']*df['height_cm']) print(df.head()) diff --git a/dockerfile3 b/dockerfile3 index c86a156..595239b 100644 --- a/dockerfile3 +++ b/dockerfile3 @@ -8,7 +8,8 @@ RUN apt-get update \ && pip install --user kaggle \ && pip install --user pandas \ && pip install --user plotly \ - && pip install --user seaborn + && pip install --user seaborn \ + && pip install --user scikit-learn ENV PATH="/root/.local/bin:$PATH" @@ -16,4 +17,4 @@ WORKDIR /app RUN git clone https://git.wmi.amu.edu.pl/s487178/ium_s487178.git /app -CMD ["python3", "body_performance.py"] \ No newline at end of file +#CMD ["python3", "body_performance.py"] \ No newline at end of file