Spaces:
Runtime error
Runtime error
krishnasai99
commited on
Commit
•
a89bf70
1
Parent(s):
c3105f1
Update app.py
Browse files
app.py
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
def load_summarizer()
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
nameentity = pipeline("ner",device=0)
|
9 |
-
translate = pipeline("translation", device=0)
|
10 |
-
return whisper, summarize, senti, nameentity, translate
|
11 |
|
12 |
st.subheader("Choose a mp3 file that you extracted from the work site")
|
13 |
uploaded_file = st.file_uploader("Select file from your directory")
|
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
#def load_summarizer():#
|
5 |
+
# whisper = pipeline('automatic-speech-recognition') #audio-to-text
|
6 |
+
# summarize = pipeline("summarization", device=0)
|
7 |
+
# senti = pipeline("sentiment-analysis",device=0)
|
8 |
+
#nameentity = pipeline("ner",device=0)
|
9 |
+
#translate = pipeline("translation", device=0)
|
10 |
+
#return whisper, summarize, senti, nameentity, translate
|
11 |
|
12 |
st.subheader("Choose a mp3 file that you extracted from the work site")
|
13 |
uploaded_file = st.file_uploader("Select file from your directory")
|