-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
42 lines (36 loc) · 1.22 KB
/
main.py
File metadata and controls
42 lines (36 loc) · 1.22 KB
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
import streamlit as st
from streamlit_option_menu import option_menu
import pdf_data,url_data,hr_ques,ai_trainer
st.set_page_config(
page_title="Interview ChatBot"
)
class multiApp:
def __init__(self):
self.apps = []
def add_app(self, title, function):
self.apps.append({
"title": title,
"function": function
})
def run(self):
with st.sidebar:
app = option_menu(
menu_title='MENU',
options=['PDF','URL','AI TRAINER','HR QUESTION'],
default_index=1,
styles={
"container": {"padding": "5!important","background-color":'black'},
"icon": {"color": "white", "font-size": "23px"},
"nav-link": {"color":"white","font-size": "20px", "text-align": "left", "margin":"0px", "--hover-color": "#85929E"},
"nav-link-selected": {"background-color": "blue"},}
)
if app == 'PDF':
pdf_data.app()
if app == 'URL':
url_data.app()
if app == 'AI TRAINER':
ai_trainer.app()
if app == 'HR QUESTION':
hr_ques.app()
app = multiApp()
app.run()