Unable to run demo after training whisper model.

#13
by i-sarthak-s - opened

I am running the steps to train and deploy whisper model as shown in the blog here (https://huggingface.co/blog/fine-tune-whisper)
I was able to successfully train the model by running trainer.train(). Post training, I pushed the trainer logs to the hub using the below code:

image.png

I try to run the demo using the following code:

image.png

However, I am unable to run it and getting the error shown below:

image.png

Apparently, it is looking tokenizer and not able to find it. I tried to look in the files in the repository and tokenizer is not present (screenshot below). Please let me know how to proceed.
image.png

Hi! I suppose you already have a answer, but for anyone that has the same problem I fixed it by doing:

tokenizer.push_to_hub("your_namespace/your_model_repo", token="your_access_token")

REMINDER: the token you use should be in "write" access, not "read"!

Sign up or log in to comment