dennisvdang commited on
Commit
78ae2ad
·
1 Parent(s): 606184e

Update UI: stack options vertically and add YouTube disclaimer

Browse files
Files changed (1) hide show
  1. streamlit_app.py +10 -13
streamlit_app.py CHANGED
@@ -247,20 +247,17 @@ def main() -> None:
247
  </div>
248
  """, unsafe_allow_html=True)
249
 
250
- # User input section
251
- col1, col2 = st.columns(2)
 
 
 
252
 
253
- with col1:
254
- st.markdown('<div class="input-option">', unsafe_allow_html=True)
255
- st.subheader("Option 1: Upload an audio file")
256
- uploaded_file = st.file_uploader("Choose an audio file", type=['mp3', 'wav', 'ogg', 'flac', 'm4a'])
257
- st.markdown('</div>', unsafe_allow_html=True)
258
-
259
- with col2:
260
- st.markdown('<div class="input-option">', unsafe_allow_html=True)
261
- st.subheader("Option 2: YouTube URL")
262
- youtube_url = st.text_input("Enter a YouTube URL", placeholder="https://www.youtube.com/watch?v=...")
263
- st.markdown('</div>', unsafe_allow_html=True)
264
 
265
  # Process button
266
  if st.button("Analyze"):
 
247
  </div>
248
  """, unsafe_allow_html=True)
249
 
250
+ # User input section - stacked vertically instead of in columns
251
+ st.markdown('<div class="input-option">', unsafe_allow_html=True)
252
+ st.subheader("Option 1: Upload an audio file")
253
+ uploaded_file = st.file_uploader("Choose an audio file", type=['mp3', 'wav', 'ogg', 'flac', 'm4a'])
254
+ st.markdown('</div>', unsafe_allow_html=True)
255
 
256
+ st.markdown('<div class="input-option">', unsafe_allow_html=True)
257
+ st.subheader("Option 2: YouTube URL")
258
+ st.warning("⚠️ The YouTube download option may not work due to platform restrictions. It's recommended to use the file upload option instead.")
259
+ youtube_url = st.text_input("Enter a YouTube URL", placeholder="https://www.youtube.com/watch?v=...")
260
+ st.markdown('</div>', unsafe_allow_html=True)
 
 
 
 
 
 
261
 
262
  # Process button
263
  if st.button("Analyze"):