Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,12 +15,13 @@ st.header("Cantonese Song Sentiment Analyzer")
|
|
15 |
input_file = st.file_uploader("upload a song in mp3 format", type="mp3") # upload song
|
16 |
if input_file is not None:
|
17 |
st.write("File uploaded successfully!")
|
|
|
18 |
else:
|
19 |
st.write("No file uploaded.")
|
20 |
button_click = st.button("Run Analysis", type="primary")
|
21 |
|
22 |
# load song
|
23 |
-
output_file = "
|
24 |
|
25 |
# preprocess and crop audio file
|
26 |
def audio_preprocess():
|
|
|
15 |
input_file = st.file_uploader("upload a song in mp3 format", type="mp3") # upload song
|
16 |
if input_file is not None:
|
17 |
st.write("File uploaded successfully!")
|
18 |
+
st.write(input_file)
|
19 |
else:
|
20 |
st.write("No file uploaded.")
|
21 |
button_click = st.button("Run Analysis", type="primary")
|
22 |
|
23 |
# load song
|
24 |
+
output_file = ""
|
25 |
|
26 |
# preprocess and crop audio file
|
27 |
def audio_preprocess():
|