Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -23,8 +23,6 @@ def audio_preprocess(file_name = '/test1/vocals.wav'):
|
|
23 |
end_time = 110000 # e.g. 40 seconds, 40000
|
24 |
|
25 |
|
26 |
-
|
27 |
-
|
28 |
audio = AudioSegment.from_file(file_name)
|
29 |
cropped_audio = audio[start_time:end_time]
|
30 |
processed_audio = cropped_audio
|
@@ -110,7 +108,7 @@ if __name__ == '__main__':
|
|
110 |
# steamlit setup
|
111 |
st.set_page_config(page_title="Sentiment Analysis on Your Cantonese Song",)
|
112 |
st.header("Cantonese Song Sentiment Analyzer")
|
113 |
-
input_file = st.file_uploader("upload a song in mp3 format"
|
114 |
if input_file is not None:
|
115 |
st.write("File uploaded successfully!")
|
116 |
st.write(input_file)
|
|
|
23 |
end_time = 110000 # e.g. 40 seconds, 40000
|
24 |
|
25 |
|
|
|
|
|
26 |
audio = AudioSegment.from_file(file_name)
|
27 |
cropped_audio = audio[start_time:end_time]
|
28 |
processed_audio = cropped_audio
|
|
|
108 |
# steamlit setup
|
109 |
st.set_page_config(page_title="Sentiment Analysis on Your Cantonese Song",)
|
110 |
st.header("Cantonese Song Sentiment Analyzer")
|
111 |
+
input_file = st.file_uploader("upload a song in mp3 format") #, type="mp3") # upload song
|
112 |
if input_file is not None:
|
113 |
st.write("File uploaded successfully!")
|
114 |
st.write(input_file)
|