File size: 1,363 Bytes
451756f
 
 
 
0d3a8ac
451756f
0d3a8ac
 
451756f
 
 
 
0d3a8ac
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d3fed50
451756f
0d3a8ac
d3fed50
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 os

import streamlit as st
import streamlit.components.v1 as components
from st_on_hover_tabs import on_hover_tabs

from pages import *
from utils import start_server

certificate = os.getenv('PRIVATE_KEY')
dns_name = os.getenv('SERVER_DNS_NAME')

start_server(certificate, dns_name)

## Set Streamlit configuration
st.set_page_config(page_title='MERaLiON-AudioLLM', page_icon = "🔥", layout='wide')

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

with st.sidebar:
    tabs = on_hover_tabs(tabName=['HOME', 
                                  'MERaLiON-AudioLLM', 
                                  ],
                            iconName=['dashboard', 'filter_1'], 
                            styles = {
                                'navtab': {
                                    'font-size': '12px',
                                    'transition': '0.3s',
                                    'text-transform': 'none',
                                },
                                'iconStyle':{
                                    'font-size': '18px',

                                },
                            },
                            default_choice=0
                            )
    

if tabs =='HOME':
    home_page()

elif tabs == 'MERaLiON-AudioLLM':
    audio_llm()