From e9b0f9cc7cea5d26cdad573edef26e4d42c5bffb Mon Sep 17 00:00:00 2001
From: Julian Rasch <julian.rasch@gmail.com>
Date: Thu, 20 Feb 2025 20:43:50 +0100
Subject: [PATCH] removed unnecessary files and cleaned up

---
 Dockerfile       |  4 ++--
 environment.yml  |  7 -------
 my_callbacks.py  | 21 ---------------------
 my_layout.py     | 13 -------------
 requirements.txt |  8 +++-----
 5 files changed, 5 insertions(+), 48 deletions(-)
 delete mode 100644 environment.yml
 delete mode 100644 my_callbacks.py
 delete mode 100644 my_layout.py

diff --git a/Dockerfile b/Dockerfile
index 2d92e24..6cf18fa 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 eef32e1..0000000
--- 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 6640c9d..0000000
--- 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 e0cf7c4..0000000
--- 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 ac29b9b..e38d704 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
-- 
GitLab