Spaces:
Running
Running
File size: 2,366 Bytes
f6b1e4d b269917 f6b1e4d b269917 f6b1e4d b269917 f6b1e4d b269917 f6b1e4d b269917 3f368b8 f6b1e4d 97145d2 914ae0f 3f368b8 c5b64a9 3f368b8 c483a8c f6b1e4d c5b64a9 f6b1e4d c5b64a9 f6b1e4d b269917 f6b1e4d b269917 97145d2 f6b1e4d b269917 97145d2 3f368b8 b269917 97145d2 3f368b8 b269917 3f368b8 c85b7c7 |
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 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
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
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=['== INTRODUCTION ==',
'ASR - English',
'ASR - Mandarin',
'Speech Translation',
'Speech Question Answering',
'Speech Instruction',
'Audio Captioning',
'Audio Scene Question Answering',
'Accent Recognition',
'Gender Recognition',
'Emotion Recognition',
],
iconName=['dashboard', 'filter_1', 'filter_2', 'filter_3', 'filter_4', 'filter_5',
'filter_6', 'filter_7', 'filter_8', 'filter_9', 'filter_9_plus'],
styles = {
'navtab': {
'font-size': '12px',
'transition': '0.3s',
'text-transform': 'none',
},
'iconStyle':{
'font-size': '18px',
},
},
default_choice=0
)
if tabs =='== INTRODUCTION ==':
dashboard()
elif tabs == 'ASR - English':
asr()
elif tabs == 'ASR - Mandarin':
cnasr()
elif tabs == 'Speech Question Answering':
sqa()
elif tabs == 'Speech Instruction':
si()
elif tabs == 'Audio Captioning':
ac()
elif tabs == 'Audio Scene Question Answering':
asqa()
elif tabs == 'Accent Recognition':
ar()
elif tabs == 'Gender Recognition':
gr()
elif tabs == 'Emotion Recognition':
er()
elif tabs == 'Speech Translation':
spt() |