espnet / espnet/espnet_model_zoo

Missing getitem on huggingface page:

Open
#68 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
260
Forks
44
PR merge metrics
No merged PRs in 30d

Description

Hi, I tried a model from Huggingface (https://huggingface.co/espnet/simpleoier_librispeech_asr_train_asr_conformer7_wavlm_large_raw_en_bpe5000_sp) and copied the code from the "Use in ESPnet" button.
The example was broken, I had to change
```
text, *_ = model(speech)
```
to
```
text, *_ = model(speech)[0]
```

According to the readme of espnet_model_zoo, the user has to use the getitem first.
I don't know, how to fix that. Could you fix the example on huggingface?

Here, the examples from huggingface and github with the mismatch of the expected output of `Speech2Text`:
![image](https://user-images.githubusercontent.com/13744128/194334077-eec494ba-5d77-4e5d-b5b6-e52472c77da9.png)

![image](https://user-images.githubusercontent.com/13744128/194334158-0fa791f5-1815-43f5-b0d6-2c9be6363a5e.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.