diff --git a/Dockerfile b/Dockerfile index 2d92e24dd5f13b99c1c55cde9a59466b7388c150..6cf18fa7a29392289b38fbcdfb6a62a258e5a513 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,8 @@ FROM quay.io/jupyter/datascience-notebook:hub-5.2.0 USER root -RUN pip install --no-cache-dir streamlit jupyter-server-proxy +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt && rm requirements.txt ENV HOME_PATH=/home/jovyan/ @@ -20,6 +21,5 @@ RUN chown -R jovyan /streamlit/app/ RUN python -m nltk.downloader stopwords RUN python -m nltk.downloader wordnet RUN python -m nltk.downloader punkt -RUN python -m spacy download en_core_web_sm USER jovyan \ No newline at end of file diff --git a/environment.yml b/environment.yml deleted file mode 100644 index eef32e175e1f18d058cee69d1e5baf91d7bdca45..0000000000000000000000000000000000000000 --- a/environment.yml +++ /dev/null @@ -1,7 +0,0 @@ -name: "base" -channels: - - defaults -# dependencies: -# - add packages here -# - one per line -prefix: "/opt/conda" diff --git a/my_callbacks.py b/my_callbacks.py deleted file mode 100644 index 6640c9dab08cbf2a5826a0511b78b6e03a6e215c..0000000000000000000000000000000000000000 --- a/my_callbacks.py +++ /dev/null @@ -1,21 +0,0 @@ -from dash.dependencies import ( - Input, - Output -) -from dash import html - - -def register_callbacks(app): - @app.callback( - Output('output-container-button', 'children'), - [Input('submit-btn', 'n_clicks')], - [Input('input-text', 'value')] - ) - def update_output(n_clicks, input_value): - if n_clicks > 0: - return html.Div([ - html.Label("You entered:"), - html.P(input_value) - ]) - else: - return '' diff --git a/my_layout.py b/my_layout.py deleted file mode 100644 index e0cf7c4a9a74950db48449451e5e594fa8df9140..0000000000000000000000000000000000000000 --- a/my_layout.py +++ /dev/null @@ -1,13 +0,0 @@ -from dash import html -from dash import dcc - - -layout = html.Div([ - html.H1("Yeay, my app!"), - html.Div([ - html.Label("Enter your text:"), - dcc.Input(id='input-text', type='text', value=''), - html.Button('Submit', id='submit-btn', n_clicks=0), - ]), - html.Div(id='output-container-button') -]) diff --git a/requirements.txt b/requirements.txt index ac29b9b1c8f1318ce01ba85896196a0f8df36743..e38d7048e8a887c61c87cbfc3763388a8ac1148e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,12 +1,10 @@ +jupyter-server-proxy==4.4.0 + +streamlit openai rapidfuzz nltk -spacy==3.4.4 -numpy==1.21.6 -scikit-learn==1.1.3 pdfplumber python-dotenv - -streamlit