File size: 1,049 Bytes
741135c
 
726a5af
 
 
741135c
726a5af
741135c
 
 
 
8682d55
b2c2327
8682d55
 
741135c
 
15efba0
8682d55
15efba0
8682d55
15efba0
 
741135c
 
 
 
 
 
 
15efba0
741135c
15efba0
 
 
 
726a5af
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
title: Gemma‑3n SOAP Generator
emoji: 🩺
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 5.38.2
app_file: app.py
pinned: false
---

# Gemma‑3n SOAP Generator Space

This Space uses the `google/gemma-3n-e2b-it` model to:

1. Generate 100 synthetic doctor’s notes and corresponding SOAP “ground truths” on startup.  
2. Save `doc_notes.tsv` and `ground_truth_soap.tsv` to the workspace.  
3. Expose a no‑op Gradio UI stub for demonstration.

## SDK & Dependencies

Make sure you have the following installed (see `requirements.txt`):

- **Transformers** (from source): `git+https://github.com/huggingface/transformers.git`  
- **BitsAndBytes** for 8‑bit quantization  
- **Accelerate** for device mapping  
- **Timm** (model helpers)  
- **EasyOCR** (if using OCR features)  
- **Gradio** for the UI  
- **Hugging Face Hub SDK**: `huggingface_hub`  

Install them all via:

```bash
pip install --no-deps \
  git+https://github.com/huggingface/transformers.git \
  bitsandbytes accelerate timm easyocr gradio huggingface_hub