Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,11 @@ 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 |
button_click = st.button("Run Analysis", type="primary")
|
16 |
|
17 |
|
@@ -74,11 +79,6 @@ def senti_model(transcription):
|
|
74 |
# main
|
75 |
def main():
|
76 |
|
77 |
-
input_file = st.file_uploader("upload a song in mp3 format", type="mp3") # upload song
|
78 |
-
if input_file is not None:
|
79 |
-
st.write("File uploaded successfully!")
|
80 |
-
else:
|
81 |
-
st.write("No file uploaded.")
|
82 |
audio_preprocess()
|
83 |
transcription = asr_model()
|
84 |
final_result = senti_model(transcription)
|
|
|
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 |
|
|
|
79 |
# main
|
80 |
def main():
|
81 |
|
|
|
|
|
|
|
|
|
|
|
82 |
audio_preprocess()
|
83 |
transcription = asr_model()
|
84 |
final_result = senti_model(transcription)
|