kluvin commited on
Commit
5a5f199
·
verified ·
1 Parent(s): 73bcf15

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. Dockerfile +4 -4
  2. pyproject.toml +38 -0
  3. uv.lock +0 -0
Dockerfile CHANGED
@@ -7,11 +7,11 @@ WORKDIR /app
7
  # Install uv for faster dependency management
8
  COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
9
 
10
- # Copy dependency files from parent directory
11
- COPY ../pyproject.toml /tmp/pyproject.toml
12
 
13
- # Install dependencies
14
- RUN uv pip install --system --no-cache-dir flask gunicorn transformers torch accelerate huggingface-hub
15
 
16
  # Copy web app files
17
  COPY . .
 
7
  # Install uv for faster dependency management
8
  COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
9
 
10
+ # Copy dependency files
11
+ COPY pyproject.toml uv.lock ./
12
 
13
+ # Install dependencies using uv sync
14
+ RUN uv sync --frozen --no-dev
15
 
16
  # Copy web app files
17
  COPY . .
pyproject.toml ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "dat158-ml-project"
7
+ version = "0.1.0"
8
+ description = "Add your description here"
9
+ readme = "README.md"
10
+ requires-python = ">=3.13"
11
+ dependencies = [
12
+ "datasets>=4.2.0",
13
+ "flask>=3.0.0",
14
+ "huggingface-hub>=0.35.3",
15
+ "matplotlib>=3.10.7",
16
+ "pandas>=2.3.3",
17
+ "polars>=1.34.0",
18
+ "sentence-transformers>=3.0.1",
19
+ "scikit-learn>=1.7.2",
20
+ "seaborn>=0.13.2",
21
+ "accelerate>=0.26.0",
22
+ "torch>=2.4.1",
23
+ "transformers>=4.57.1",
24
+ "emoji>=2.15.0",
25
+ "nbmerge>=0.0.4",
26
+ "nbformat>=5.10.4",
27
+ "ipywidgets>=8.1.7",
28
+ "joblib>=1.4.0",
29
+ ]
30
+
31
+ [dependency-groups]
32
+ dev = [
33
+ "ipykernel>=7.0.1",
34
+ ]
35
+
36
+ [tool.setuptools.packages.find]
37
+ where = ["."]
38
+ include = ["experiments*"]
uv.lock ADDED
The diff for this file is too large to render. See raw diff