dzs commited on
Commit ·
cae45c6
1
Parent(s): a8b8fe8
Added the docker and requirements file needed to host on huggingface.com
Browse files- Dockerfile +18 -0
- requirements.txt +25 -0
Dockerfile
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use Python base image
|
| 2 |
+
FROM python:3.12
|
| 3 |
+
|
| 4 |
+
# Set working directory
|
| 5 |
+
WORKDIR /app
|
| 6 |
+
|
| 7 |
+
# Copy current files into container
|
| 8 |
+
COPY . /app
|
| 9 |
+
|
| 10 |
+
# Install Flask
|
| 11 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
+
|
| 13 |
+
# Expose default port
|
| 14 |
+
EXPOSE 7860
|
| 15 |
+
|
| 16 |
+
# Run with Gunicorn
|
| 17 |
+
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "CHRIS:app"]
|
| 18 |
+
|
requirements.txt
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
flask
|
| 2 |
+
gunicorn
|
| 3 |
+
nltk==3.9.1
|
| 4 |
+
pandas==2.2.3
|
| 5 |
+
PubChemPy==1.0.4
|
| 6 |
+
CIRpy==1.0.2
|
| 7 |
+
chemicals==1.3.3
|
| 8 |
+
urllib3==2.2.3
|
| 9 |
+
requests==2.32.3
|
| 10 |
+
selenium==4.32.0
|
| 11 |
+
chromedriver-binary==138.0.7158.0.0
|
| 12 |
+
pillow==11.0.0
|
| 13 |
+
rdkit==2024.3.5
|
| 14 |
+
dill==0.3.8
|
| 15 |
+
scikit-learn==1.6.1
|
| 16 |
+
padelpy==0.1.16
|
| 17 |
+
Flask==3.1.0
|
| 18 |
+
matplotlib==3.9.2
|
| 19 |
+
scipy==1.14.1
|
| 20 |
+
quantile-forest==1.4.0
|
| 21 |
+
mordred==1.2.0
|
| 22 |
+
beautifulsoup4==4.12.3
|
| 23 |
+
setuptools==72.1.0
|
| 24 |
+
openpyxl==3.1.5
|
| 25 |
+
|