zhuohan-7 commited on
Commit
3f368b8
·
verified ·
1 Parent(s): abc1e1a

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +41 -9
app.py CHANGED
@@ -12,12 +12,23 @@ st.set_page_config(
12
  page_title="Leaderboard", page_icon=":chart_with_upwards_trend:", layout="wide"
13
  )
14
 
15
- st.header("AudioBench Leaderboard")
16
  st.markdown('<style>' + open('./style/sidebar_style.css').read() + '</style>', unsafe_allow_html=True)
17
 
18
  with st.sidebar:
19
- tabs = on_hover_tabs(tabName=['Dashboard', 'Speech Understanding', 'Audio Scene Understanding', 'Voice Understanding'],
20
- iconName=['dashboard', 'filter_1', 'filter_2', 'filter_3'],
 
 
 
 
 
 
 
 
 
 
 
21
  styles = {
22
  'navtab': {
23
  'font-size': '12px',
@@ -34,11 +45,32 @@ with st.sidebar:
34
  if tabs =='Dashboard':
35
  dashboard()
36
 
37
- elif tabs == 'Speech Understanding':
38
- speech_understanding()
39
 
40
- elif tabs == 'Audio Scene Understanding':
41
- audio_scene_understanding()
42
 
43
- elif tabs == 'Voice Understanding':
44
- voice_understanding()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  page_title="Leaderboard", page_icon=":chart_with_upwards_trend:", layout="wide"
13
  )
14
 
15
+ # st.header("AudioBench Leaderboard")
16
  st.markdown('<style>' + open('./style/sidebar_style.css').read() + '</style>', unsafe_allow_html=True)
17
 
18
  with st.sidebar:
19
+ tabs = on_hover_tabs(tabName=['Dashboard',
20
+ 'Automatic Speech Recognition',
21
+ 'Chinese Automatic Speech Recognition',
22
+ 'Speech Question Answering',
23
+ 'Speech Instruction',
24
+ 'Audio Captioning',
25
+ 'Audio Scene Question Answering',
26
+ 'Accent Recognition',
27
+ 'Gender Recognition',
28
+ 'Emotion Recognition',
29
+ 'Speech Translation'],
30
+ iconName=['dashboard', 'filter_1', 'filter_2', 'filter_3', 'filter_4', 'filter_5',
31
+ 'filter_6', 'filter_7', 'filter_8', 'filter_9', 'filter_10'],
32
  styles = {
33
  'navtab': {
34
  'font-size': '12px',
 
45
  if tabs =='Dashboard':
46
  dashboard()
47
 
48
+ elif tabs == 'Automatic Speech Recognition':
49
+ asr()
50
 
51
+ elif tabs == 'Chinese Automatic Speech Recognition':
52
+ cnasr()
53
 
54
+ elif tabs == 'Speech Question Answering':
55
+ sqa()
56
+
57
+ elif tabs == 'Speech Instruction':
58
+ si()
59
+
60
+ elif tabs == 'Audio Captioning':
61
+ ac()
62
+
63
+ elif tabs == 'Audio Scene Question Answering':
64
+ asqa()
65
+
66
+ elif tabs == 'Accent Recognition':
67
+ ar()
68
+
69
+ elif tabs == 'Gender Recognition':
70
+ gr()
71
+
72
+ elif tabs == 'Emotion Recognition':
73
+ er()
74
+
75
+ elif tabs == 'Speech Translation':
76
+ st()