talantbekdeveloper commited on
Commit
ae0d52c
1 Parent(s): 148fbe6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -5
app.py CHANGED
@@ -1,9 +1,15 @@
1
  import streamlit as st
2
  from transformers import pipeline
3
 
4
- transcriber = pipeline(task="sentiment-analysis")
5
- text = st.text_input('Label', 'enter some text!')
 
6
 
7
- if text:
8
- out = transcriber(text)
9
- st.json(out)
 
 
 
 
 
 
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)