Automatic Speech Recognition
Transformers
Safetensors
prosody_to_text
feature-extraction
prosody
speech-recognition
custom_code
Instructions to use Daporte/prosody2text-weights with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Daporte/prosody2text-weights with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="Daporte/prosody2text-weights", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Daporte/prosody2text-weights", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Point the missing-checkpoint error at the model repo
Browse filesKeeps whisper_decoder.py in step with prosody2text-code; scripts/fetch_models.py
does not exist in either repo.
- whisper_decoder.py +4 -2
whisper_decoder.py
CHANGED
|
@@ -136,8 +136,10 @@ class Whisper:
|
|
| 136 |
if not (model_dir / "config.json").exists():
|
| 137 |
raise FileNotFoundError(
|
| 138 |
f"{model_dir} is not a Whisper checkpoint directory "
|
| 139 |
-
"(no config.json).
|
| 140 |
-
"
|
|
|
|
|
|
|
| 141 |
)
|
| 142 |
|
| 143 |
if device is None:
|
|
|
|
| 136 |
if not (model_dir / "config.json").exists():
|
| 137 |
raise FileNotFoundError(
|
| 138 |
f"{model_dir} is not a Whisper checkpoint directory "
|
| 139 |
+
"(no config.json). The weights come from the model repo, so "
|
| 140 |
+
"load through it rather than pointing here by hand:\n"
|
| 141 |
+
" AutoModel.from_pretrained("
|
| 142 |
+
"'Daporte/prosody2text-weights', trust_remote_code=True)"
|
| 143 |
)
|
| 144 |
|
| 145 |
if device is None:
|