File size: 1,381 Bytes
f6b1e4d
 
b269917
f6b1e4d
b269917
f6b1e4d
b269917
f6b1e4d
b269917
f6b1e4d
 
 
 
b269917
f6b1e4d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b269917
f6b1e4d
b269917
f6b1e4d
 
b269917
f6b1e4d
 
b269917
f6b1e4d
 
b269917
f6b1e4d
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import streamlit as st
import streamlit.components.v1 as components

from st_on_hover_tabs import on_hover_tabs

from app.pages import *

import json

# if __name__ == "__main__":
st.set_page_config(
    page_title="Leaderboard", page_icon=":chart_with_upwards_trend:", layout="wide"
)

st.header("AudioBench Leaderboard")
st.markdown('<style>' + open('./style/sidebar_style.css').read() + '</style>', unsafe_allow_html=True)

with st.sidebar:
    tabs = on_hover_tabs(tabName=['Dashboard', 'Speech Understanding', 'Audio Scene Understanding', 'Voice Understanding'],
                            iconName=['dashboard', 'filter_1', 'filter_2', 'filter_3'], 
                            styles = {
                                'navtab': {
                                    'font-size': '12px',
                                    'transition': '.1s',
                                },
                                'iconStyle':{
                                    'font-size': '18px',
                                },
                            },
                            default_choice=0
                            )
    

if tabs =='Dashboard':
    dashboard()

elif tabs == 'Speech Understanding':
    speech_understanding()

elif tabs == 'Audio Scene Understanding':
    audio_scene_understanding()

elif tabs == 'Voice Understanding':
    voice_understanding()