-
Notifications
You must be signed in to change notification settings - Fork 2
/
app_bahasa.py
39 lines (31 loc) · 916 Bytes
/
app_bahasa.py
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
import streamlit as st
from streamlit_option_menu import option_menu
from nusacular.about import about_us
from nusacular.chatbot import chatbot
from nusacular.deteksi import deteksi
from nusacular.sentimen import sentimen
from nusacular.suara import text2speech
from nusacular.terjemahan import translate
st.set_page_config(
page_title="Nusacular",
page_icon="✨"
)
with st.sidebar:
selected = option_menu(
"Nusacular",
['Deteksi Bahasa Daerah', 'Chatbot', 'Terjemahan', 'Suara', 'Sentimen', 'Tentang Kami'],
icons=['flag', 'robot', 'translate', 'soundwave', 'emoji-smile', 'person-fill'],
default_index=0
)
if selected == "Deteksi Bahasa Daerah":
deteksi()
elif selected == "Chatbot":
chatbot()
elif selected == "Terjemahan":
translate()
elif selected == "Suara":
text2speech()
elif selected == "Sentimen":
sentimen()
else:
about_us()