Spaces:
Running
Running
talantbekdeveloper
commited on
Commit
•
ae0d52c
1
Parent(s):
148fbe6
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,15 @@
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
transcriber = pipeline(
|
5 |
-
|
|
|
6 |
|
7 |
-
|
8 |
-
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
transcriber = pipeline(model="openai/whisper-large-v2")
|
5 |
+
transcriber("https://huggingface.co/datasets/Narsil/asr_dummy/resolve/main/mlk.flac")
|
6 |
+
st.json(transcriber)
|
7 |
|
8 |
+
|
9 |
+
|
10 |
+
# transcriber = pipeline(task="sentiment-analysis")
|
11 |
+
# text = st.text_input('Label', 'enter some text!')
|
12 |
+
|
13 |
+
# if text:
|
14 |
+
# out = transcriber(text)
|
15 |
+
# st.json(out)
|