Spaces:
Running
Running
Sync from GitHub via hub-sync
Browse files
README.md
CHANGED
|
@@ -15,21 +15,23 @@ Each recipe is a single self-contained [UV script](https://docs.astral.sh/uv/gui
|
|
| 15 |
|
| 16 |
## Quickstart
|
| 17 |
|
|
|
|
|
|
|
| 18 |
**See every recipe** — locally, no GPU or token:
|
| 19 |
|
| 20 |
```bash
|
| 21 |
uv run https://huggingface.co/datasets/uv-scripts/jobs-utils/raw/main/list-recipes.py
|
| 22 |
```
|
| 23 |
|
| 24 |
-
**Run one on a GPU** —
|
| 25 |
|
| 26 |
```bash
|
| 27 |
-
hf jobs uv run --flavor
|
| 28 |
https://huggingface.co/datasets/uv-scripts/ocr/raw/main/glm-ocr.py \
|
| 29 |
-
|
| 30 |
```
|
| 31 |
|
| 32 |
-
|
| 33 |
|
| 34 |
## Drive it with your coding agent
|
| 35 |
|
|
@@ -49,9 +51,9 @@ and the GitHub repo https://github.com/davanstrien/uv-scripts-for-ai.
|
|
| 49 |
|
| 50 |
```
|
| 51 |
Using uv-scripts, OCR a sample dataset on Hugging Face Jobs:
|
| 52 |
-
hf jobs uv run --flavor
|
| 53 |
https://huggingface.co/datasets/uv-scripts/ocr/raw/main/glm-ocr.py \
|
| 54 |
-
|
| 55 |
Then open the output dataset and show me the `markdown` column.
|
| 56 |
```
|
| 57 |
|
|
|
|
| 15 |
|
| 16 |
## Quickstart
|
| 17 |
|
| 18 |
+
For GPU runs, [install the `hf` CLI and sign in](https://huggingface.co/docs/hub/jobs-quickstart). Jobs requires pay-as-you-go credit.
|
| 19 |
+
|
| 20 |
**See every recipe** — locally, no GPU or token:
|
| 21 |
|
| 22 |
```bash
|
| 23 |
uv run https://huggingface.co/datasets/uv-scripts/jobs-utils/raw/main/list-recipes.py
|
| 24 |
```
|
| 25 |
|
| 26 |
+
**Run one on a GPU** — extract text from [seven scanned NASA booklet pages](https://huggingface.co/datasets/uv-scripts/ocr-demo):
|
| 27 |
|
| 28 |
```bash
|
| 29 |
+
hf jobs uv run --flavor a10g-small --timeout 15m --secrets HF_TOKEN \
|
| 30 |
https://huggingface.co/datasets/uv-scripts/ocr/raw/main/glm-ocr.py \
|
| 31 |
+
uv-scripts/ocr-demo your-username/ocr-demo-results
|
| 32 |
```
|
| 33 |
|
| 34 |
+
Replace `your-username` with your Hugging Face username. The Job saves a new dataset with a `markdown` column. Follow the [OCR walkthrough](https://huggingface.co/datasets/uv-scripts/ocr#use-your-own-documents) to use your own scans or PDFs and retrieve and check the results.
|
| 35 |
|
| 36 |
## Drive it with your coding agent
|
| 37 |
|
|
|
|
| 51 |
|
| 52 |
```
|
| 53 |
Using uv-scripts, OCR a sample dataset on Hugging Face Jobs:
|
| 54 |
+
hf jobs uv run --flavor a10g-small --timeout 15m --secrets HF_TOKEN \
|
| 55 |
https://huggingface.co/datasets/uv-scripts/ocr/raw/main/glm-ocr.py \
|
| 56 |
+
uv-scripts/ocr-demo $MY_HF_USERNAME/ocr-demo-results
|
| 57 |
Then open the output dataset and show me the `markdown` column.
|
| 58 |
```
|
| 59 |
|