Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using finetuned whisper checkpoints for inference #106

Closed
skanda1005 opened this issue Feb 21, 2023 · 1 comment
Closed

Using finetuned whisper checkpoints for inference #106

skanda1005 opened this issue Feb 21, 2023 · 1 comment
Assignees

Comments

@skanda1005
Copy link

Hi!
I have been trying for a long time to get inference on the finetuned model but it keeps throwing an error saying that tokenizer is missing.

Steps to reproduce:

from transformers import pipeline

pipe = pipeline("automatic-speech-recognition",model="nodlehs/whisper_finetune")  # change to "your-username/the-name-you-picked"

def transcribe(audio):
    text = pipe(audio)["text"]
    return text

It seems I am missing a tokenizer file but while running the whisper finetune, no such file was uploaded
Could someone please help me out?

P.S this is my model on hf https://huggingface.co/nodlehs/whisper_finetune/tree/main

@Vaibhavs10
Copy link
Member

Hi @skanda1005 - There appears to be an issue with the way your model was uploaded on the hub. The tokenizer is missing. Might be a good diea to ensure that all the files are there in your model repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants