Spaces:
No application file
No application file
single
Browse files- dockerfile +17 -0
- index.py +1 -0
- requirements.txt +47 -0
- wsgi.py +4 -0
dockerfile
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use an official Python image
|
| 2 |
+
FROM python:3.10-slim
|
| 3 |
+
|
| 4 |
+
# Set the working directory
|
| 5 |
+
WORKDIR /app
|
| 6 |
+
|
| 7 |
+
# Copy application files
|
| 8 |
+
COPY . /app
|
| 9 |
+
|
| 10 |
+
# Install dependencies
|
| 11 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
+
|
| 13 |
+
# Expose the port Flask will run on
|
| 14 |
+
EXPOSE 7860
|
| 15 |
+
|
| 16 |
+
# Define the entry point for the app
|
| 17 |
+
CMD ["python", "app.py"]
|
index.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
from wsgi import app
|
requirements.txt
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
asttokens==3.0.0
|
| 2 |
+
blinker==1.9.0
|
| 3 |
+
click==8.1.8
|
| 4 |
+
comm==0.2.2
|
| 5 |
+
compress-pickle==2.1.0
|
| 6 |
+
debugpy==1.8.11
|
| 7 |
+
decorator==5.1.1
|
| 8 |
+
executing==2.1.0
|
| 9 |
+
Flask==3.1.0
|
| 10 |
+
gunicorn==23.0.0
|
| 11 |
+
ipykernel==6.29.5
|
| 12 |
+
ipython==8.31.0
|
| 13 |
+
itsdangerous==2.2.0
|
| 14 |
+
jedi==0.19.2
|
| 15 |
+
Jinja2==3.1.5
|
| 16 |
+
joblib==1.4.2
|
| 17 |
+
jupyter_client==8.6.3
|
| 18 |
+
jupyter_core==5.7.2
|
| 19 |
+
MarkupSafe==3.0.2
|
| 20 |
+
matplotlib-inline==0.1.7
|
| 21 |
+
nest-asyncio==1.6.0
|
| 22 |
+
numpy==2.2.1
|
| 23 |
+
packaging==24.2
|
| 24 |
+
pandas==2.2.3
|
| 25 |
+
parso==0.8.4
|
| 26 |
+
pexpect==4.9.0
|
| 27 |
+
platformdirs==4.3.6
|
| 28 |
+
prompt_toolkit==3.0.48
|
| 29 |
+
psutil==6.1.1
|
| 30 |
+
ptyprocess==0.7.0
|
| 31 |
+
pure_eval==0.2.3
|
| 32 |
+
Pygments==2.18.0
|
| 33 |
+
python-dateutil==2.9.0.post0
|
| 34 |
+
pytz==2024.2
|
| 35 |
+
pyzmq==26.2.0
|
| 36 |
+
scikit-learn==1.6.0
|
| 37 |
+
scipy==1.14.1
|
| 38 |
+
setuptools==75.6.0
|
| 39 |
+
six==1.17.0
|
| 40 |
+
stack-data==0.6.3
|
| 41 |
+
threadpoolctl==3.5.0
|
| 42 |
+
tornado==6.4.2
|
| 43 |
+
traitlets==5.14.3
|
| 44 |
+
tzdata==2024.2
|
| 45 |
+
wcwidth==0.2.13
|
| 46 |
+
Werkzeug==3.1.3
|
| 47 |
+
wheel==0.45.1
|
wsgi.py
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from Webapp.app import app
|
| 2 |
+
|
| 3 |
+
if __name__ == "__main__":
|
| 4 |
+
app.run(debug=True)
|