zziang commited on
Commit
e321ee2
·
verified ·
1 Parent(s): cda1aee

whisper probe: 6 low-voicing candidates

Browse files
Files changed (1) hide show
  1. kaggle/notebook_whisper.py +23 -0
kaggle/notebook_whisper.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Kaggle notebook body: find a whisper clip that survives as a Ming prompt."""
2
+ import os
3
+ import subprocess
4
+ import sys
5
+
6
+ from notebook_eval import BUNDLE, MODEL, ROOT, WEIGHTS, pull, stage_deps, stage_repo
7
+
8
+ BUNDLE_REPO = "idefinity/webfm-eval"
9
+
10
+
11
+ def main() -> None:
12
+ stage_repo()
13
+ stage_deps()
14
+ pull(WEIGHTS, MODEL)
15
+ pull(BUNDLE_REPO, BUNDLE, repo_type="dataset")
16
+ env = dict(os.environ, WORK_ROOT=str(ROOT), CUDA_VISIBLE_DEVICES="0")
17
+ rc = subprocess.run([sys.executable, str(BUNDLE / "kaggle/whisper_probe.py")],
18
+ env=env).returncode
19
+ print("whisper probe rc", rc)
20
+
21
+
22
+ if __name__ == "__main__":
23
+ main()