File size: 653 Bytes
f92bf08
1cc095d
 
 
 
f92bf08
1cc095d
e802cab
f92bf08
 
 
 
1cc095d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: Sanskrit D3PM Paraphrase
emoji: "🕉️"
colorFrom: indigo
colorTo: blue
sdk: gradio
sdk_version: 5.0.0
python_version: 3.11
app_file: app.py
pinned: false
---

# Sanskrit D3PM Gradio Space

This Space runs Roman/IAST Sanskrit to Devanagari generation.

## Model Source

Set these Space variables in **Settings → Variables and secrets**:

- `HF_CHECKPOINT_REPO` = `<your-username>/sanskrit-d3pm`
- `HF_CHECKPOINT_FILE` = `best_model.pt`
- `HF_CHECKPOINT_LABEL` = `main-model` (optional)

The app will download checkpoint from your model repo and load it at runtime.

## Local Dev

```bash
pip install -r requirements.txt
python app.py
```