Spaces:
Running
Running
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,19 +1,34 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
-
sdk:
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
- streamlit
|
| 10 |
pinned: false
|
| 11 |
-
|
| 12 |
---
|
| 13 |
|
| 14 |
-
#
|
| 15 |
|
| 16 |
-
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Mobile Lookup
|
| 3 |
+
emoji: 📱
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: indigo
|
| 6 |
+
sdk: streamlit
|
| 7 |
+
sdk_version: 1.41.0
|
| 8 |
+
app_file: app.py
|
|
|
|
| 9 |
pinned: false
|
| 10 |
+
license: mit
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# Mobile Lookup
|
| 14 |
|
| 15 |
+
Search mobile numbers across a HuggingFace parquet dataset using DuckDB.
|
| 16 |
|
| 17 |
+
## How it works
|
| 18 |
+
|
| 19 |
+
1. Searches `mobile1_index.parquet` and `mobile2_index.parquet` in parallel via DuckDB
|
| 20 |
+
2. Uses the `row_group_id` + `row_start`/`row_end` from the index to fetch only the exact row group from HuggingFace
|
| 21 |
+
3. Returns all matching records with full details
|
| 22 |
+
|
| 23 |
+
## Setup
|
| 24 |
+
|
| 25 |
+
Set the following repository secret in your Space settings:
|
| 26 |
+
|
| 27 |
+
| Secret | Description |
|
| 28 |
+
|--------|-------------|
|
| 29 |
+
| `HF_TOKEN` | HuggingFace token with read access to the dataset |
|
| 30 |
+
|
| 31 |
+
## Index files
|
| 32 |
+
|
| 33 |
+
Upload `mobile1_index.parquet` and `mobile2_index.parquet` to the Space repository,
|
| 34 |
+
or set `MOBILE1_IDX` / `MOBILE2_IDX` env vars to `hf://` paths if stored in a dataset.
|