alankabisov commited on
Commit
3ae50c8
1 Parent(s): 35388bb

adapted to streamlit 1.1.0 version

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +3 -3
  3. requirements.txt +1 -1
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🚀
4
  colorFrom: purple
5
  colorTo: pink
6
  sdk: streamlit
7
- sdk_version: 1.15.1
8
  app_file: app.py
9
  pinned: false
10
  ---
 
4
  colorFrom: purple
5
  colorTo: pink
6
  sdk: streamlit
7
+ sdk_version: 1.10.0
8
  app_file: app.py
9
  pinned: false
10
  ---
app.py CHANGED
@@ -144,7 +144,7 @@ def process_click_callback():
144
  summary = generate_summary(subtitles)
145
 
146
  st.session_state.summary_output = summary
147
- st.success('Processing complete!', icon="")
148
 
149
  is_processing = False
150
 
@@ -161,10 +161,10 @@ if __name__ == "__main__":
161
  col1, col2 = st.columns(2)
162
 
163
  with col1:
164
- video_url_inp = st.text_input('YouTube Video URL:', placeholder='YouTube URL',
165
- label_visibility='collapsed')
166
 
167
  with col2:
 
168
  process_btn = st.button('🗜️Process', key='process_btn', on_click=process_click_callback)
169
 
170
  summary_out_txt = st.text_area(label='', key='summary_output', height=400)
 
144
  summary = generate_summary(subtitles)
145
 
146
  st.session_state.summary_output = summary
147
+ st.success('Processing complete! ✅')
148
 
149
  is_processing = False
150
 
 
161
  col1, col2 = st.columns(2)
162
 
163
  with col1:
164
+ video_url_inp = st.text_input('', placeholder='YouTube URL')
 
165
 
166
  with col2:
167
+ st.markdown('#') # Adds empty space
168
  process_btn = st.button('🗜️Process', key='process_btn', on_click=process_click_callback)
169
 
170
  summary_out_txt = st.text_area(label='', key='summary_output', height=400)
requirements.txt CHANGED
@@ -3,4 +3,4 @@ transformers
3
  youtube_transcript_api
4
  tqdm
5
  stqdm
6
- streamlit==1.15.1
 
3
  youtube_transcript_api
4
  tqdm
5
  stqdm
6
+ streamlit==1.10.0