-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.py
63 lines (50 loc) · 1.94 KB
/
app.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import streamlit as st
from streamlit_chat import message
# from streamlit_extras.colored_header import colored_header
# from streamlit_extras.add_vertical_space import add_vertical_space
from hugchat import hugchat
from hugchat.login import Login
from llm_model import chat_with_gpt,gpt_response
from decouple import config
from curriculum import curriculum_making
from interview import interview_topic
from learning_topics import learning_topics
from assessment import assessment
st.set_page_config(page_title="HugChat - An LLM-powered Streamlit app")
user_input = None
hf_email = config("hf_email")
hf_pass = config("hf_pass")
def first_page():
# Sidebar contents
with st.sidebar:
st.title('🤗💬 Edufrent')
st.markdown("skills over certifications")
st.markdown('''
## About
"Unlock your potential with technology-powered learning!"
''')
# Button states
cur = st.button("Curriculum")
lrn = st.button("Learning material")
asm = st.button("Assessment creator")
inv = st.button("Interview prep")
for i in range(15):
st.write('')
st.write('Made with ❤️ by ')
st.write(' Gagana')
st.write(' Siddhanth')
st.write(' Anil Kumar')
st.title("Edufrent")
st.write("Please provide your information.")
# Execute functions based on button states
page_option = st.selectbox("Select an option", ('Curriculum creator', 'Learning topics','Assessment Bot','Interview Bot'))
if page_option == "Curriculum creator":
curriculum_making()
if page_option == "Learning topics":
learning_topics()
if page_option=="Assessment Bot":
st.write("you can use this feature in app2.py by running streamlit run app2.py")
if page_option=="Interview Bot":
st.write("you can use this feature in app2.py by running streamlit run app2.py")
# Run the first_page() function
first_page()