binwang commited on
Commit
1b6573a
·
verified ·
1 Parent(s): f7d283c

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +26 -14
app.py CHANGED
@@ -15,20 +15,23 @@ st.set_page_config(
15
 
16
  # Dictionary mapping menu items to their corresponding functions
17
  pages = {
18
- 'Dashboard' : dashboard,
19
- 'ASR-English' : asr_english,
20
- 'ASR-Mandarin' : asr_mandarin,
21
- 'ASR-Singlish' : asr_singlish,
22
- 'Speech Translation' : speech_translation,
23
- 'SQA-English' : speech_question_answering_english,
24
- 'SQA-Singlish' : speech_question_answering_singlish,
25
- 'Speech Instruction' : speech_instruction,
26
- 'Audio Captioning' : audio_captioning,
27
- 'Audio-Scene QA': audio_scene_question_answering,
28
- 'Accent Recognition' : accent_recognition,
29
- 'Gender Recognition' : gender_recognition,
30
- 'Emotion Recognition' : emotion_recognition,
31
- 'Music Understanding' : music_understanding,
 
 
 
32
  }
33
 
34
  # Initialize session state for menu selection
@@ -57,6 +60,12 @@ menu_items = [
57
  ]
58
  ),
59
 
 
 
 
 
 
 
60
  sac.MenuItem(label='Speech Instruction', icon='mic-fill'),
61
 
62
  sac.MenuItem(label='Audio Captioning', icon='volume-down'),
@@ -70,6 +79,9 @@ menu_items = [
70
  sac.MenuItem(label='Emotion Recognition', icon='emoji-smile-fill'),
71
 
72
  sac.MenuItem(label='Music Understanding', icon='music-note-list'),
 
 
 
73
  ]
74
 
75
  # Render the menu in the sidebar
 
15
 
16
  # Dictionary mapping menu items to their corresponding functions
17
  pages = {
18
+ 'Dashboard' : dashboard,
19
+ 'ASR-English' : asr_english,
20
+ 'ASR-Mandarin' : asr_mandarin,
21
+ 'ASR-Singlish' : asr_singlish,
22
+ 'Speech Translation' : speech_translation,
23
+ 'SQA-English' : speech_question_answering_english,
24
+ 'SQA-Singlish' : speech_question_answering_singlish,
25
+ 'SDS-Singlish' : spoken_dialogue_summarization_singlish,
26
+ 'Speech Instruction' : speech_instruction,
27
+ 'Audio Captioning' : audio_captioning,
28
+ 'Audio-Scene QA' : audio_scene_question_answering,
29
+ 'Accent Recognition' : accent_recognition,
30
+ 'Gender Recognition' : gender_recognition,
31
+ 'Emotion Recognition': emotion_recognition,
32
+ 'Music Understanding': music_understanding,
33
+
34
+ '* Under Development *': under_development,
35
  }
36
 
37
  # Initialize session state for menu selection
 
60
  ]
61
  ),
62
 
63
+ sac.MenuItem(label='Spoken Dialogue Summarization', icon='question-circle',
64
+ children = [
65
+ sac.MenuItem(label='SDS-Singlish', icon='mic'),
66
+ ]
67
+ ),
68
+
69
  sac.MenuItem(label='Speech Instruction', icon='mic-fill'),
70
 
71
  sac.MenuItem(label='Audio Captioning', icon='volume-down'),
 
79
  sac.MenuItem(label='Emotion Recognition', icon='emoji-smile-fill'),
80
 
81
  sac.MenuItem(label='Music Understanding', icon='music-note-list'),
82
+
83
+ sac.MenuItem(label='* Under Development *', icon='lock'),
84
+
85
  ]
86
 
87
  # Render the menu in the sidebar