Spaces:
Runtime error
Runtime error
Commit
·
72aa911
1
Parent(s):
1455c2a
Update app.py
Browse files
app.py
CHANGED
@@ -22,10 +22,18 @@ st.title("Summarize Text")
|
|
22 |
sentence = st.text_area('Please paste your article :', height=30)
|
23 |
button = st.button("Click")
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
if text:
|
26 |
out=pipe(text)
|
27 |
st.json(out)
|
28 |
|
|
|
|
|
29 |
|
30 |
|
31 |
|
|
|
22 |
sentence = st.text_area('Please paste your article :', height=30)
|
23 |
button = st.button("Click")
|
24 |
|
25 |
+
st.subheader("Choose a mp3 file that you extracted from the work site")
|
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)
|
33 |
st.json(out)
|
34 |
|
35 |
+
|
36 |
+
|
37 |
|
38 |
|
39 |
|