Jarod Castillo commited on
Commit
b52dae4
1 Parent(s): 5eccb9a

outputs mp3, name changes

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +5 -4
  3. requirements.txt +1 -0
README.md CHANGED
@@ -28,7 +28,7 @@ A web-based tool for removing vocals from audio files using deep learning.
28
 
29
  ## Overview
30
 
31
- The Vocal Remover is a user-friendly web application that leverages deep learning models to remove vocals from audio files. It provides an easy and interactive way for users to upload their audio files and process them to obtain vocals-free versions.
32
 
33
  ## Features
34
 
 
28
 
29
  ## Overview
30
 
31
+ The Vocal Isolator is a user-friendly web application that leverages deep learning models to isolate vocals from audio files. It provides an easy and interactive way for users to upload their audio files and process them to obtain vocals-free versions.
32
 
33
  ## Features
34
 
app.py CHANGED
@@ -3,6 +3,7 @@ import os
3
 
4
  # Third-Party
5
  import streamlit as st
 
6
 
7
  # Local
8
  from src.models.MDX_net.kimvocal import KimVocal
@@ -19,10 +20,10 @@ OUTPUT_FOLDER = "./datasets/output"
19
  def main():
20
  # Set page configuration and theming
21
  st.set_page_config(
22
- page_title="Jarod's Vocal Remover",
23
  page_icon="🎵",
24
  )
25
- st.title("Vocal Remover")
26
 
27
  # Upload WAV file
28
  uploaded_file = st.file_uploader(
@@ -32,7 +33,6 @@ def main():
32
  )
33
 
34
  if uploaded_file is not None:
35
- uploaded_file_ext = uploaded_file.name.lower().split(".")[-1]
36
  # Process the uploaded audio
37
  st.subheader("Audio Processing")
38
  st.write("Processing the uploaded audio file...")
@@ -74,7 +74,8 @@ def main():
74
 
75
  # Display processed audio
76
  st.subheader("Processed Audio")
77
- st.audio(vocals_array, format="audio/wav", sample_rate=samplerate)
 
78
 
79
 
80
  if __name__ == "__main__":
 
3
 
4
  # Third-Party
5
  import streamlit as st
6
+ import librosa
7
 
8
  # Local
9
  from src.models.MDX_net.kimvocal import KimVocal
 
20
  def main():
21
  # Set page configuration and theming
22
  st.set_page_config(
23
+ page_title="Sing For Me",
24
  page_icon="🎵",
25
  )
26
+ st.title("Vocal Isolator")
27
 
28
  # Upload WAV file
29
  uploaded_file = st.file_uploader(
 
33
  )
34
 
35
  if uploaded_file is not None:
 
36
  # Process the uploaded audio
37
  st.subheader("Audio Processing")
38
  st.write("Processing the uploaded audio file...")
 
74
 
75
  # Display processed audio
76
  st.subheader("Processed Audio")
77
+ # TODO: Is it encoding it wrong? Maybe fix it later.
78
+ st.audio(data=vocals_array, format="audio/mpeg", sample_rate=samplerate)
79
 
80
 
81
  if __name__ == "__main__":
requirements.txt CHANGED
@@ -1,5 +1,6 @@
1
  torch~=2.0.1
2
  onnxruntime~=1.15.1
 
3
  librosa~=0.10.0.post2
4
  soundfile~=0.12.1
5
  numpy~=1.24.4
 
1
  torch~=2.0.1
2
  onnxruntime~=1.15.1
3
+ onnxruntime-gpu~=1.15.1
4
  librosa~=0.10.0.post2
5
  soundfile~=0.12.1
6
  numpy~=1.24.4