uv install
Browse files
README.md
CHANGED
|
@@ -18,3 +18,22 @@ To run the gradio app, install the dependencies and run `python app.py`.
|
|
| 18 |
You can also do `gradio app.py` to use a filewatcher and update the app as you edit the files, but I haven't found that to work too well.
|
| 19 |
|
| 20 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
You can also do `gradio app.py` to use a filewatcher and update the app as you edit the files, but I haven't found that to work too well.
|
| 19 |
|
| 20 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
| 21 |
+
|
| 22 |
+
### Quickstart
|
| 23 |
+
|
| 24 |
+
Install `uv`
|
| 25 |
+
```
|
| 26 |
+
curl -LsSf https://astral.sh/uv/install.sh | sh
|
| 27 |
+
```
|
| 28 |
+
Create new environment and install requirements with `uv`
|
| 29 |
+
```
|
| 30 |
+
uv venv && uv pip install -r requirements.txt
|
| 31 |
+
```
|
| 32 |
+
Run app
|
| 33 |
+
```
|
| 34 |
+
uv run python app.py
|
| 35 |
+
```
|
| 36 |
+
Run tests
|
| 37 |
+
```
|
| 38 |
+
uv run pytest
|
| 39 |
+
```
|