Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,14 +9,14 @@ from IPython.display import Audio
|
|
9 |
import os
|
10 |
import accelerate
|
11 |
|
12 |
-
#os.environ["PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION"] = "python" #fix Spaces pipeline error
|
13 |
-
|
14 |
# steamlit setup
|
15 |
st.set_page_config(page_title="Sentiment Analysis on Your Cantonese Song",)
|
16 |
st.header("Cantonese Song Sentiment Analyzer")
|
17 |
|
18 |
|
|
|
19 |
# load song
|
|
|
20 |
output_file = "/content/"
|
21 |
|
22 |
# preprocess and crop audio file
|
@@ -90,5 +90,6 @@ def main():
|
|
90 |
sample_rate = audio_data['sampling_rate'])
|
91 |
|
92 |
|
93 |
-
if
|
94 |
-
|
|
|
|
9 |
import os
|
10 |
import accelerate
|
11 |
|
|
|
|
|
12 |
# steamlit setup
|
13 |
st.set_page_config(page_title="Sentiment Analysis on Your Cantonese Song",)
|
14 |
st.header("Cantonese Song Sentiment Analyzer")
|
15 |
|
16 |
|
17 |
+
|
18 |
# load song
|
19 |
+
input_file = ""
|
20 |
output_file = "/content/"
|
21 |
|
22 |
# preprocess and crop audio file
|
|
|
90 |
sample_rate = audio_data['sampling_rate'])
|
91 |
|
92 |
|
93 |
+
if st.button("Start Analysis")
|
94 |
+
if __name__ == '__main__':
|
95 |
+
main()
|