Spaces:
Runtime error
Runtime error
Commit
·
86da822
1
Parent(s):
d98f44c
update package configs
Browse files- README.md +9 -2
- pyproject.toml +1 -7
- uv.lock +1 -1
README.md
CHANGED
|
@@ -42,17 +42,24 @@ app/ # Directory for application code
|
|
| 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 |
```
|
|
|
|
| 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 |
+
```bash
|
| 46 |
+
uv venv --python 3.11
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
```bash
|
| 50 |
+
source .venv/bin/activate
|
| 51 |
+
```
|
| 52 |
|
| 53 |
To install the required dependencies, run the following commands:
|
| 54 |
|
| 55 |
### ML Dependencies
|
| 56 |
|
| 57 |
```bash
|
| 58 |
+
uv sync --group ml
|
| 59 |
```
|
| 60 |
|
| 61 |
### App Dependencies
|
| 62 |
|
| 63 |
```bash
|
| 64 |
+
uv sync --group app
|
| 65 |
```
|
pyproject.toml
CHANGED
|
@@ -10,17 +10,11 @@ dependencies = [
|
|
| 10 |
"ipykernel>=6.29.5",
|
| 11 |
]
|
| 12 |
|
| 13 |
-
[tool.setuptools.packages.find]
|
| 14 |
-
where = [
|
| 15 |
-
"ml",
|
| 16 |
-
"app",
|
| 17 |
-
]
|
| 18 |
-
|
| 19 |
[dependency-groups]
|
| 20 |
ml = [
|
| 21 |
"trl>=0.12.2",
|
| 22 |
]
|
| 23 |
app = [
|
| 24 |
-
"gradio>=5.
|
| 25 |
"huggingface-hub>=0.26.5",
|
| 26 |
]
|
|
|
|
| 10 |
"ipykernel>=6.29.5",
|
| 11 |
]
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
[dependency-groups]
|
| 14 |
ml = [
|
| 15 |
"trl>=0.12.2",
|
| 16 |
]
|
| 17 |
app = [
|
| 18 |
+
"gradio>=5.10.0",
|
| 19 |
"huggingface-hub>=0.26.5",
|
| 20 |
]
|
uv.lock
CHANGED
|
@@ -1111,7 +1111,7 @@ requires-dist = [
|
|
| 1111 |
|
| 1112 |
[package.metadata.requires-dev]
|
| 1113 |
app = [
|
| 1114 |
-
{ name = "gradio", specifier = ">=5.
|
| 1115 |
{ name = "huggingface-hub", specifier = ">=0.26.5" },
|
| 1116 |
]
|
| 1117 |
ml = [{ name = "trl", specifier = ">=0.12.2" }]
|
|
|
|
| 1111 |
|
| 1112 |
[package.metadata.requires-dev]
|
| 1113 |
app = [
|
| 1114 |
+
{ name = "gradio", specifier = ">=5.10.0" },
|
| 1115 |
{ name = "huggingface-hub", specifier = ">=0.26.5" },
|
| 1116 |
]
|
| 1117 |
ml = [{ name = "trl", specifier = ">=0.12.2" }]
|