dennisvdang commited on
Commit
4419a9d
1 Parent(s): 083c84b

Script fixes

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. style.css +1 -1
app.py CHANGED
@@ -394,14 +394,14 @@ def plot_predictions(audio_features, predictions):
394
  def main():
395
  st.title("Chorus Finder")
396
  st.write("This app uses a pre-trained convolutional recurrent neural network to predict chorus locations in music. To learn more about this project, visit [github.com/dennisvdang/chorus-detection](https://github.com/dennisvdang/chorus-detection).")
397
- st.write("Upload a YouTube URL to find the chorus in the song.")
398
  url = st.text_input("YouTube URL")
399
  if st.button("Find Chorus"):
400
  if url:
401
  with st.spinner('Analyzing YouTube link...'):
402
  audio_file, video_title, temp_dir = extract_audio(url)
403
  if audio_file:
404
- with st.spinner('Trimming silence...'):
405
  strip_silence(audio_file)
406
  with st.spinner('Processing audio...'):
407
  processed_audio, audio_features = process_audio(audio_path=audio_file)
 
394
  def main():
395
  st.title("Chorus Finder")
396
  st.write("This app uses a pre-trained convolutional recurrent neural network to predict chorus locations in music. To learn more about this project, visit [github.com/dennisvdang/chorus-detection](https://github.com/dennisvdang/chorus-detection).")
397
+ st.write("Enter a YouTube song URL to find the chorus in the song.")
398
  url = st.text_input("YouTube URL")
399
  if st.button("Find Chorus"):
400
  if url:
401
  with st.spinner('Analyzing YouTube link...'):
402
  audio_file, video_title, temp_dir = extract_audio(url)
403
  if audio_file:
404
+ with st.spinner('Analyzing YouTube link...'):
405
  strip_silence(audio_file)
406
  with st.spinner('Processing audio...'):
407
  processed_audio, audio_features = process_audio(audio_path=audio_file)
style.css CHANGED
@@ -4,7 +4,7 @@ body {
4
  }
5
 
6
  .stButton>button {
7
- background-color: #fcb900;
8
  color: white;
9
  border: none;
10
  padding: 10px 24px;
 
4
  }
5
 
6
  .stButton>button {
7
+ background-color: #fcd600;
8
  color: white;
9
  border: none;
10
  padding: 10px 24px;