RexChan commited on
Commit
66e3963
·
verified ·
1 Parent(s): 8ab8537

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
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 __name__ == '__main__':
94
- main()
 
 
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()