Update README.md
Browse files
README.md
CHANGED
@@ -43,9 +43,12 @@ vietnamese
|
|
43 |
|
44 |
```python
|
45 |
|
|
|
46 |
from huggingface_hub import from_pretrained_keras
|
47 |
-
|
48 |
model = from_pretrained_keras("SpeechFlow/spoken_language_identification")
|
49 |
-
|
|
|
|
|
50 |
|
51 |
```
|
|
|
43 |
|
44 |
```python
|
45 |
|
46 |
+
import librosa
|
47 |
from huggingface_hub import from_pretrained_keras
|
48 |
+
from featurizers.speech_featurizers import TFSpeechFeaturizer,
|
49 |
model = from_pretrained_keras("SpeechFlow/spoken_language_identification")
|
50 |
+
signal, _ = librosa.load(wav_path, sr=16000)
|
51 |
+
output, prob = model.predict_pb(signal)
|
52 |
+
print(output)
|
53 |
|
54 |
```
|