Update README.md
Browse files
README.md
CHANGED
@@ -1,17 +1,26 @@
|
|
1 |
-
---
|
2 |
-
license: mit
|
3 |
-
---
|
4 |
# Gemma‑3n SOAP Generator Space
|
5 |
|
6 |
This Space uses the `google/gemma-3n-e2b-it` model to:
|
7 |
|
8 |
1. Generate 100 synthetic doctor’s notes and corresponding SOAP “ground truths” on startup.
|
9 |
2. Save `doc_notes.tsv` and `ground_truth_soap.tsv` to the workspace.
|
10 |
-
3. Expose a no‑op Gradio UI stub.
|
11 |
|
12 |
-
##
|
13 |
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# Gemma‑3n SOAP Generator Space
|
2 |
|
3 |
This Space uses the `google/gemma-3n-e2b-it` model to:
|
4 |
|
5 |
1. Generate 100 synthetic doctor’s notes and corresponding SOAP “ground truths” on startup.
|
6 |
2. Save `doc_notes.tsv` and `ground_truth_soap.tsv` to the workspace.
|
7 |
+
3. Expose a no‑op Gradio UI stub for demonstration.
|
8 |
|
9 |
+
## SDK & Dependencies
|
10 |
|
11 |
+
Make sure you have the following installed (see `requirements.txt`):
|
12 |
+
|
13 |
+
- **Transformers** (from source): `git+https://github.com/huggingface/transformers.git`
|
14 |
+
- **BitsAndBytes** for 8‑bit quantization
|
15 |
+
- **Accelerate** for device mapping
|
16 |
+
- **Timm** (model helpers)
|
17 |
+
- **EasyOCR** (if using OCR features)
|
18 |
+
- **Gradio** for the UI
|
19 |
+
- **Hugging Face Hub SDK**: `huggingface_hub` to manage authentication and snapshots
|
20 |
+
|
21 |
+
You can install them all via:
|
22 |
+
|
23 |
+
```bash
|
24 |
+
pip install --no-deps \
|
25 |
+
git+https://github.com/huggingface/transformers.git \
|
26 |
+
bitsandbytes accelerate timm easyocr gradio huggingface_hub
|