Spaces:
Runtime error
Runtime error
Commit
·
18bf1eb
1
Parent(s):
72aa911
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,11 @@ def load_summarizer():
|
|
10 |
return whisper, summarize, senti, nameentity, translate
|
11 |
|
12 |
|
13 |
-
|
|
|
|
|
|
|
|
|
14 |
|
15 |
|
16 |
#pipe = pipeline("sentiment-analysis")
|
@@ -22,11 +26,7 @@ st.title("Summarize Text")
|
|
22 |
sentence = st.text_area('Please paste your article :', height=30)
|
23 |
button = st.button("Click")
|
24 |
|
25 |
-
|
26 |
-
uploaded_file = st.file_uploader("Select file from your directory")
|
27 |
-
if uploaded_file is not None:
|
28 |
-
audio_bytes = uploaded_file.read()
|
29 |
-
st.audio(audio_bytes, format='audio/mp3')
|
30 |
|
31 |
if text:
|
32 |
out=pipe(text)
|
|
|
10 |
return whisper, summarize, senti, nameentity, translate
|
11 |
|
12 |
|
13 |
+
st.subheader("Choose a mp3 file that you extracted from the work site")
|
14 |
+
uploaded_file = st.file_uploader("Select file from your directory")
|
15 |
+
if uploaded_file is not None:
|
16 |
+
audio_bytes = uploaded_file.read()
|
17 |
+
st.audio(audio_bytes, format='audio/mp3')
|
18 |
|
19 |
|
20 |
#pipe = pipeline("sentiment-analysis")
|
|
|
26 |
sentence = st.text_area('Please paste your article :', height=30)
|
27 |
button = st.button("Click")
|
28 |
|
29 |
+
|
|
|
|
|
|
|
|
|
30 |
|
31 |
if text:
|
32 |
out=pipe(text)
|