Daniel Tse commited on
Commit
b03d0c5
1 Parent(s): 5eee93d

Change app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -7
app.py CHANGED
@@ -1,12 +1,17 @@
1
  import streamlit as st
2
  from transformers import pipeline
3
 
4
- x = st.slider('Select a value')
5
- st.write(x, 'squared is', x * x)
6
 
7
- pipe = pipeline("summarization", model='facebook/bart-large-cnn')
8
- text = st.text_area('enter some text')
 
 
 
 
 
 
 
 
 
9
 
10
- if text:
11
- out = pipe(text, max_length=130, min_length=30, do_sample=False)
12
- st.json(out)
 
1
  import streamlit as st
2
  from transformers import pipeline
3
 
4
+ st.markdown("# Podcast Q&A")
 
5
 
6
+ st.markdown(
7
+ """
8
+ This helps understand information-dense podcast episodes by doing the following:
9
+ - Speech to Text transcription - using OpenSource Whisper Model
10
+ - Summarizes the episode
11
+ - Allows you to ask questions and returns direct quotes from the episode.
12
+
13
+ """
14
+ )
15
+
16
+ audio_file = st.file_uploader("Upload audio copy of file", key="upload", type=['.mp3'])
17