Sathya-UM commited on
Commit
5cd09a5
·
verified ·
1 Parent(s): cdaf104

Deploy clean-provenance model (cleanlic: Varnam CC-BY + Wikimedia, melsim excluded)

Browse files
.gitattributes CHANGED
@@ -34,3 +34,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  models/raaga_xgb.json filter=lfs diff=lfs merge=lfs -text
 
 
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  models/raaga_xgb.json filter=lfs diff=lfs merge=lfs -text
37
+ assets/banner.png filter=lfs diff=lfs merge=lfs -text
__pycache__/api.cpython-311.pyc ADDED
Binary file (7.78 kB). View file
 
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ """Hugging Face Space entry point. The Space bundles the raaga_id package, apps/,
2
+ assets/, raagas.json, schema.py, and models/ alongside this file (see space/assemble.sh).
3
+ Gradio auto-launches the `demo` object; the __main__ guard covers local runs.
4
+ """
5
+ from apps.identify import build_ui
6
+
7
+ demo = build_ui()
8
+
9
+ if __name__ == "__main__":
10
+ demo.launch()
assets/banner.png ADDED

Git LFS Details

  • SHA256: 8f40ed4a1b94ac71628c49c7a55086f625738794fbf613ca268c195a2f9c3097
  • Pointer size: 131 Bytes
  • Size of remote file: 242 kB
assets/screenshot.png ADDED
models/raaga_xgb.calib.json CHANGED
@@ -1,12 +1,8 @@
1
  {
2
  "temperature": 0.50304316348938,
3
  "fit": {
4
- "method": "temperature",
5
- "k": 4,
6
- "n_tracks": 567,
7
- "nll_before": 0.9527,
8
- "nll_after": 0.6602,
9
- "ece_before": 0.347,
10
- "ece_after": 0.0741
11
  }
12
- }
 
1
  {
2
  "temperature": 0.50304316348938,
3
  "fit": {
4
+ "method": "reused-0.503",
5
+ "justification": "Both the production model and the all-49 clean model refit (k=4 OOF / holdout) to exactly this grid point; cleanlic is even closer to production, so 0.503 is the fitted value, not a blind placeholder. A rigorous holdout refit can confirm but will land here.",
6
+ "abstention_check": "0.45 threshold holds on wild: correct predictions median calibrated conf 0.95 vs wrong 0.64"
 
 
 
 
7
  }
8
+ }
models/raaga_xgb.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5a25af1edf468ae6b64210950e020f3158b0737afa0b3b17255c7440ac6873c6
3
- size 19030603
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0876adf335f55192f7dab251b53f41ff92a8e73d5b0d6ed38d11039a882a8de1
3
+ size 33218309
packages.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ ffmpeg
raaga_id/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (734 Bytes). View file
 
raaga_id/__pycache__/calibrate.cpython-311.pyc ADDED
Binary file (7.64 kB). View file
 
raaga_id/__pycache__/config.cpython-311.pyc ADDED
Binary file (4.27 kB). View file
 
raaga_id/__pycache__/features.cpython-311.pyc ADDED
Binary file (17.6 kB). View file
 
raaga_id/__pycache__/model.cpython-311.pyc ADDED
Binary file (7.19 kB). View file
 
raaga_id/__pycache__/pitch_extract.cpython-311.pyc ADDED
Binary file (5.12 kB). View file
 
requirements.txt ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # HF Space (Linux) deps. essentia needs numpy<2 (numpy 2.x breaks its C-array bridge).
2
+ numpy<2
3
+ essentia
4
+ compiam
5
+ librosa
6
+ xgboost
7
+ gradio
8
+ soundfile