Merge pull request #2 from huggingface/fix/dependencies
Browse filesfix installation of dependencies for the package with package finders
- README.md +19 -4
- pyproject.toml +1 -1
- uv.lock +0 -0
README.md
CHANGED
@@ -9,7 +9,7 @@ app_file: app/app.py
|
|
9 |
pinned: false
|
10 |
---
|
11 |
|
12 |
-
# Feel
|
13 |
|
14 |
This is a project to create a continuous training application.
|
15 |
|
@@ -40,19 +40,34 @@ app/ # Directory for application code
|
|
40 |
|
41 |
## Installation
|
42 |
|
43 |
-
The repository uses `uv` for managing virtual environments. To install `uv`, go [here](https://docs.astral.sh/uv/getting-started/installation/).
|
44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
|
46 |
To install the required dependencies, run the following commands:
|
47 |
|
48 |
### ML Dependencies
|
49 |
|
50 |
```bash
|
51 |
-
uv
|
52 |
```
|
53 |
|
54 |
### App Dependencies
|
55 |
|
56 |
```bash
|
57 |
-
uv
|
58 |
```
|
|
|
9 |
pinned: false
|
10 |
---
|
11 |
|
12 |
+
# Feel
|
13 |
|
14 |
This is a project to create a continuous training application.
|
15 |
|
|
|
40 |
|
41 |
## Installation
|
42 |
|
43 |
+
The repository uses `uv` for managing virtual environments. To install `uv`, go [here](https://docs.astral.sh/uv/getting-started/installation/). Create a virtual environment.
|
44 |
|
45 |
+
```bash
|
46 |
+
uv venv --python 3.11
|
47 |
+
```
|
48 |
+
|
49 |
+
Activate the virtual environment
|
50 |
+
|
51 |
+
```bash
|
52 |
+
source .venv/bin/activate
|
53 |
+
```
|
54 |
+
|
55 |
+
Sync the dependencies
|
56 |
+
|
57 |
+
```bash
|
58 |
+
uv sync --all-groups
|
59 |
+
```
|
60 |
|
61 |
To install the required dependencies, run the following commands:
|
62 |
|
63 |
### ML Dependencies
|
64 |
|
65 |
```bash
|
66 |
+
uv sync --group ml
|
67 |
```
|
68 |
|
69 |
### App Dependencies
|
70 |
|
71 |
```bash
|
72 |
+
uv sync --group app
|
73 |
```
|
pyproject.toml
CHANGED
@@ -15,6 +15,6 @@ ml = [
|
|
15 |
"trl>=0.12.2",
|
16 |
]
|
17 |
app = [
|
18 |
-
"gradio>=5.
|
19 |
"huggingface-hub>=0.26.5",
|
20 |
]
|
|
|
15 |
"trl>=0.12.2",
|
16 |
]
|
17 |
app = [
|
18 |
+
"gradio>=5.10.0",
|
19 |
"huggingface-hub>=0.26.5",
|
20 |
]
|
uv.lock
ADDED
The diff for this file is too large to render.
See raw diff
|
|