Initial commit
Browse files- .gitignore +6 -1
- Dockerfile +32 -0
- LESK +0 -1
- requirements.txt +4 -3
.gitignore
CHANGED
|
@@ -2,6 +2,10 @@
|
|
| 2 |
__pycache__/
|
| 3 |
*.py[cod]
|
| 4 |
*$py.class
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
# Virtual environments
|
| 7 |
venv/
|
|
@@ -45,4 +49,5 @@ Thumbs.db
|
|
| 45 |
|
| 46 |
# Project specific
|
| 47 |
feedback_data.json
|
| 48 |
-
flask_session/
|
|
|
|
|
|
| 2 |
__pycache__/
|
| 3 |
*.py[cod]
|
| 4 |
*$py.class
|
| 5 |
+
*.pyc
|
| 6 |
+
*.pyo
|
| 7 |
+
*.pyd
|
| 8 |
+
.Python
|
| 9 |
|
| 10 |
# Virtual environments
|
| 11 |
venv/
|
|
|
|
| 49 |
|
| 50 |
# Project specific
|
| 51 |
feedback_data.json
|
| 52 |
+
flask_session/
|
| 53 |
+
*.log
|
Dockerfile
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use an official Python runtime
|
| 2 |
+
FROM python:3.9-slim
|
| 3 |
+
|
| 4 |
+
# Set environment variables
|
| 5 |
+
ENV PYTHONDONTWRITEBYTECODE 1
|
| 6 |
+
ENV PYTHONUNBUFFERED 1
|
| 7 |
+
|
| 8 |
+
# Set working directory
|
| 9 |
+
WORKDIR /code
|
| 10 |
+
|
| 11 |
+
# Install system dependencies
|
| 12 |
+
RUN apt-get update && apt-get install -y \
|
| 13 |
+
build-essential \
|
| 14 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 15 |
+
|
| 16 |
+
# Copy dependency files
|
| 17 |
+
COPY requirements.txt .
|
| 18 |
+
|
| 19 |
+
# Install Python dependencies
|
| 20 |
+
RUN pip install -r requirements.txt
|
| 21 |
+
|
| 22 |
+
# Download NLTK data
|
| 23 |
+
RUN python -c "import nltk; nltk.download('wordnet'); nltk.download('punkt'); nltk.download('averaged_perceptron_tagger'); nltk.download('stopwords')"
|
| 24 |
+
|
| 25 |
+
# Copy the rest of the app
|
| 26 |
+
COPY . .
|
| 27 |
+
|
| 28 |
+
# Expose port
|
| 29 |
+
EXPOSE 7860
|
| 30 |
+
|
| 31 |
+
# Run the app
|
| 32 |
+
CMD gunicorn --bind 0.0.0.0:7860 app:app
|
LESK
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
Subproject commit 2aa9e13dd824fde38818152b850afbdc9c075f78
|
|
|
|
|
|
requirements.txt
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
-
Flask==2.
|
| 2 |
nltk==3.8.1
|
| 3 |
Werkzeug==2.3.6
|
| 4 |
-
transformers==4.
|
| 5 |
-
torch==2.
|
|
|
|
|
|
| 1 |
+
Flask==2.0.1
|
| 2 |
nltk==3.8.1
|
| 3 |
Werkzeug==2.3.6
|
| 4 |
+
transformers==4.30.2
|
| 5 |
+
torch==2.0.1
|
| 6 |
+
gunicorn==20.1.0
|