speechemotion / app.py
Nattyboi's picture
Update app.py
e43a9a5
raw
history blame
257 Bytes
import streamlit
from transformers.pipelines import pipeline
pipe = pipeline(model="KELONMYOSA/wav2vec2-xls-r-300m-emotion-ru", trust_remote_code=True)
# The pipeline input can be a file, path or link
result = pipe("speech.wav")
streamlit.write(result)