amirgame197 commited on
Commit
89f9b6c
·
verified ·
1 Parent(s): d783c1d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -101,12 +101,15 @@ def separate_audio_by_stem(audio_path, stem_count):
101
  {'description': 'Bass', 'path':bass_path},
102
  {'description': 'Other', 'path':other_path},
103
  ]
 
104
 
105
- uploaded_file = st.file_uploader(label="", type=["wav","mp3"])
106
  selected_stem_count = st.radio("Stem count", (2,4,5))
107
 
108
  if uploaded_file is not None:
109
 
 
 
110
  with tempfile.NamedTemporaryFile(delete=False) as temp_file:
111
  temp_file.write(uploaded_file.read())
112
  temp_file_path = temp_file.name
@@ -115,4 +118,4 @@ if uploaded_file is not None:
115
 
116
  for audio in separate_audios:
117
  st.write(audio['description'])
118
- st.audio(audio['path'], format="audio/wav", start_time=0)
 
101
  {'description': 'Bass', 'path':bass_path},
102
  {'description': 'Other', 'path':other_path},
103
  ]
104
+
105
 
106
+ uploaded_file = st.file_uploader("Choose a file", type=["wav","mp3"])
107
  selected_stem_count = st.radio("Stem count", (2,4,5))
108
 
109
  if uploaded_file is not None:
110
 
111
+ #if st.button("Submit"):
112
+
113
  with tempfile.NamedTemporaryFile(delete=False) as temp_file:
114
  temp_file.write(uploaded_file.read())
115
  temp_file_path = temp_file.name
 
118
 
119
  for audio in separate_audios:
120
  st.write(audio['description'])
121
+ st.audio(audio['path'], format="audio/wav", start_time=0)