devflow / README.md
bhsinghgrid's picture
Upload folder using huggingface_hub
2fdbfb0 verified
|
raw
history blame
1.03 kB
---
title: Sanskrit D3PM Paraphrase
emoji: "๐Ÿ•‰๏ธ"
colorFrom: indigo
colorTo: blue
sdk: gradio
sdk_version: 5.23.3
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.
### Optional MLflow Tracking in Space
You can enable lightweight MLflow event logging for inference + task runs.
Set these optional variables in **Settings โ†’ Variables and secrets**:
- `MLFLOW_TRACKING_URI` (example: `file:/tmp/mlruns` or your remote tracking server URI)
- `MLFLOW_EXPERIMENT_NAME` (example: `hf-space-sanskrit-d3pm`)
If not set, the Space runs normally without MLflow.
## Local Dev
```bash
pip install -r requirements.txt
python app.py
```