Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,15 +12,16 @@ import accelerate
|
|
12 |
# steamlit setup
|
13 |
st.set_page_config(page_title="Sentiment Analysis on Your Cantonese Song",)
|
14 |
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 |
|
23 |
# load song
|
|
|
24 |
output_file = "./"
|
25 |
|
26 |
# preprocess and crop audio file
|
|
|
12 |
# steamlit setup
|
13 |
st.set_page_config(page_title="Sentiment Analysis on Your Cantonese Song",)
|
14 |
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 |
|
23 |
# load song
|
24 |
+
input_file = "/ISOM5240_Group25_2/test1.mp3"
|
25 |
output_file = "./"
|
26 |
|
27 |
# preprocess and crop audio file
|