Spaces:
Sleeping
Sleeping
Download scratch_eval.py from vamsi1103/flask-ocr-api: direct link, hf CLI and curl.
- Browser
- Download file 409 Bytes
-
https://huggingface.co/spaces/vamsi1103/flask-ocr-api/resolve/main/scratch_eval.py
- Command line
-
hf download hf://spaces/vamsi1103/flask-ocr-api/scratch_eval.py
-
curl -L -o scratch_eval.py https://huggingface.co/spaces/vamsi1103/flask-ocr-api/resolve/main/scratch_eval.py
409 Bytes
| import json | |
| with open("scratch_paired_rows.txt", "r", encoding="utf-8") as f: | |
| lines = f.readlines() | |
| with open("full_prices.json", "r", encoding="utf-8") as f: | |
| ground_truth = json.load(f) | |
| print(f"Total ground truth items: {len(ground_truth['items'])}") | |
| for i, item in enumerate(ground_truth['items'][:10]): | |
| print(f"GT {i+1}: {item['name']} -> {item.get('rate') or item.get('available_rates')}") | |