RexChan commited on
Commit
56a8854
·
verified ·
1 Parent(s): eb6b424

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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)