diff --git a/.gitignore b/.gitignore index 6769e21..5e8f6be 100644 --- a/.gitignore +++ b/.gitignore @@ -157,4 +157,6 @@ cython_debug/ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. -#.idea/ \ No newline at end of file +#.idea/ + +.vscode/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7ed2a06 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM python:3.10-slim + +WORKDIR /app + +COPY requirements.txt . + +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . + +EXPOSE 8501 + +ENV PYTHONPATH=/app + +CMD ["streamlit", "run", "Homepage.py"] diff --git a/Homepage.py b/Homepage.py index 5e15562..811217d 100644 --- a/Homepage.py +++ b/Homepage.py @@ -1,14 +1,4 @@ import streamlit as st -import pandas as pd -import numpy as np -import scipy.stats -from scipy.stats import norm - -import janus -from janus.stats.experiment import Experiment, Variant - -from utils import save_results_in_session_state, print_warning - import logging logging.basicConfig(level=logging.INFO) @@ -17,8 +7,6 @@ st.image("logo.png", width=250) -print_warning() - st.markdown( """ # 📊 Janus: The Bayesian A/B Test App diff --git a/pages/1_Analyze_with_Summary_Information.py b/pages/1_Analyze_with_Summary_Information.py index d4366c5..ee2679d 100644 --- a/pages/1_Analyze_with_Summary_Information.py +++ b/pages/1_Analyze_with_Summary_Information.py @@ -12,12 +12,10 @@ create_per_user_dataframe_multivariate, ) -from utils import save_results_in_session_state, explain_metrics, print_warning +from utils import save_results_in_session_state, explain_metrics st.set_page_config(page_title=" A/B Testing using summary information", page_icon="📊") -print_warning() - st.markdown( """ # 📊 A/B Testing using Summary Information diff --git a/pages/2_Analyze_with_Summary_CSV.py b/pages/2_Analyze_with_Summary_CSV.py index 3c92d48..c5ccdb1 100644 --- a/pages/2_Analyze_with_Summary_CSV.py +++ b/pages/2_Analyze_with_Summary_CSV.py @@ -12,12 +12,10 @@ create_per_user_dataframe_multivariate, ) -from utils import save_results_in_session_state, explain_metrics, print_warning +from utils import save_results_in_session_state, explain_metrics st.set_page_config(page_title="A/B Testing using summary CSV", page_icon="📊") -print_warning() - st.markdown( """ # 📊 A/B Testing using summary CSV diff --git a/pages/3_Analyze_with_Per_Impression_CSV.py b/pages/3_Analyze_with_Per_Impression_CSV.py index bcc1b00..4712546 100644 --- a/pages/3_Analyze_with_Per_Impression_CSV.py +++ b/pages/3_Analyze_with_Per_Impression_CSV.py @@ -9,12 +9,10 @@ import janus from janus.stats.experiment import Experiment, Variant -from utils import save_results_in_session_state, explain_metrics, print_warning +from utils import save_results_in_session_state, explain_metrics st.set_page_config(page_title="A/B Testing using per-participant CSV", page_icon="📊") -print_warning() - st.markdown( """ # 📊 A/B Testing using per-participant CSV diff --git a/pages/4_Why_Bayesian.py b/pages/4_Why_Bayesian.py index 4c03e7c..af349a2 100644 --- a/pages/4_Why_Bayesian.py +++ b/pages/4_Why_Bayesian.py @@ -1,14 +1,11 @@ import streamlit as st import logging -from utils import print_warning st.set_page_config(page_title="Why Bayesian?", page_icon="📊") logging.basicConfig(level=logging.INFO) -print_warning() - st.markdown( """ # 📊 Why Bayesian? diff --git a/requirements.txt b/requirements.txt index 85f7cee..735bb36 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,5 +2,5 @@ pandas==1.4.4 numpy==1.25.1 scipy==1.11.1 streamlit==1.13.0 -pyspark==3.0.0 altair==4.0 +pyspark==3.0.0 \ No newline at end of file