Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
-
transcriber = pipeline(model="openai/whisper-large-v2")
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
|
|
|
|
| 9 |
|
| 10 |
# transcriber = pipeline(task="sentiment-analysis")
|
| 11 |
# text = st.text_input('Label', 'enter some text!')
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
+
transcriber = pipeline(model="openai/whisper-large-v2", device=0, batch_size=2)
|
| 5 |
+
audio_filenames = [f"https://huggingface.co/datasets/Narsil/asr_dummy/resolve/main/{i}.flac" for i in range(1, 5)]
|
| 6 |
+
texts = transcriber(audio_filenames)
|
|
|
|
| 7 |
|
| 8 |
+
st.write(texts)
|
| 9 |
|
| 10 |
# transcriber = pipeline(task="sentiment-analysis")
|
| 11 |
# text = st.text_input('Label', 'enter some text!')
|