IMvision12 commited on
Commit
c667742
·
verified ·
1 Parent(s): 3f346a8

Update class name in the quick start

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -31,7 +31,7 @@ For more details on the model, please go to the upstream [model card](https://hu
31
 
32
  Pure-**Keras 3** conversion of [`UsefulSensors/moonshine-tiny`](https://huggingface.co/UsefulSensors/moonshine-tiny) for [kerasformers](https://github.com/IMvision12/KerasFormers). One implementation runs unmodified on **TensorFlow / Torch / JAX**.
33
 
34
- This is an **ASR** checkpoint (`MoonshineSpeechToText`).
35
 
36
  ## ✨ Quick start
37
 
@@ -42,10 +42,10 @@ os.environ["KERAS_BACKEND"] = "torch" # or "jax" / "tensorflow"
42
  import soundfile as sf
43
  from kerasformers.models.moonshine import (
44
  MoonshineProcessor,
45
- MoonshineSpeechToText,
46
  )
47
 
48
- model = MoonshineSpeechToText.from_weights("kerasformers/moonshine_tiny")
49
  processor = MoonshineProcessor.from_weights("kerasformers/moonshine_tiny")
50
 
51
  audio, sr = sf.read("your_audio.wav", dtype="float32") # 16 kHz mono
@@ -67,7 +67,7 @@ Load any Moonshine variant the same way with `from_weights("kerasformers/<varian
67
  - Prefer `MoonshineProcessor.from_weights(...)` so feature extraction matches.
68
  - English-only; pass a list of waveforms to batch.
69
  - See [Moonshine docs](https://imvision12.github.io/KerasFormers/moonshine/) and [Loading Weights](https://imvision12.github.io/KerasFormers/loading_weights/).
70
- - Community / upstream safetensors still work via the `hf:` prefix, e.g. `MoonshineSpeechToText.from_weights("hf:UsefulSensors/moonshine-tiny")`.
71
 
72
  ## Special Thanks
73
 
 
31
 
32
  Pure-**Keras 3** conversion of [`UsefulSensors/moonshine-tiny`](https://huggingface.co/UsefulSensors/moonshine-tiny) for [kerasformers](https://github.com/IMvision12/KerasFormers). One implementation runs unmodified on **TensorFlow / Torch / JAX**.
33
 
34
+ This is an **ASR** checkpoint (`MoonshineConditionalGenerate`).
35
 
36
  ## ✨ Quick start
37
 
 
42
  import soundfile as sf
43
  from kerasformers.models.moonshine import (
44
  MoonshineProcessor,
45
+ MoonshineConditionalGenerate,
46
  )
47
 
48
+ model = MoonshineConditionalGenerate.from_weights("kerasformers/moonshine_tiny")
49
  processor = MoonshineProcessor.from_weights("kerasformers/moonshine_tiny")
50
 
51
  audio, sr = sf.read("your_audio.wav", dtype="float32") # 16 kHz mono
 
67
  - Prefer `MoonshineProcessor.from_weights(...)` so feature extraction matches.
68
  - English-only; pass a list of waveforms to batch.
69
  - See [Moonshine docs](https://imvision12.github.io/KerasFormers/moonshine/) and [Loading Weights](https://imvision12.github.io/KerasFormers/loading_weights/).
70
+ - Community / upstream safetensors still work via the `hf:` prefix, e.g. `MoonshineConditionalGenerate.from_weights("hf:UsefulSensors/moonshine-tiny")`.
71
 
72
  ## Special Thanks
73