Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,9 +15,7 @@ st.set_page_config(page_title="Interview Practice Bot",
|
|
15 |
|
16 |
|
17 |
def main():
|
18 |
-
roles_and_topics = {
|
19 |
-
|
20 |
-
|
21 |
|
22 |
"Front-End Developer": ["HTML/CSS", "JavaScript and Frameworks (React, Angular, Vue.js)", "Responsive Design", "Browser Compatibility"],
|
23 |
"Back-End Developer": ["Server-Side Languages (Node.js, Python, Ruby, PHP)", "Database Management (SQL, NoSQL)", "API Development", "Server and Hosting Management"],
|
@@ -42,6 +40,10 @@ def main():
|
|
42 |
|
43 |
|
44 |
}
|
|
|
|
|
|
|
|
|
45 |
|
46 |
|
47 |
st.header("Select AI:")
|
@@ -56,7 +58,12 @@ def main():
|
|
56 |
|
57 |
# User input for quiz generation
|
58 |
## Layout in columns
|
59 |
-
col1, col2
|
|
|
|
|
|
|
|
|
|
|
60 |
|
61 |
with col1:
|
62 |
selected_topic_level = st.selectbox('Select Role', list(roles_and_topics.keys()))
|
@@ -64,6 +71,13 @@ def main():
|
|
64 |
with col2:
|
65 |
selected_topic = st.selectbox('Select Topic', roles_and_topics[selected_topic_level])
|
66 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
with col3:
|
68 |
num_quizzes = st.slider('Number of Questions', min_value=1, max_value= 10, value=1)
|
69 |
|
|
|
15 |
|
16 |
|
17 |
def main():
|
18 |
+
roles_and_topics = {
|
|
|
|
|
19 |
|
20 |
"Front-End Developer": ["HTML/CSS", "JavaScript and Frameworks (React, Angular, Vue.js)", "Responsive Design", "Browser Compatibility"],
|
21 |
"Back-End Developer": ["Server-Side Languages (Node.js, Python, Ruby, PHP)", "Database Management (SQL, NoSQL)", "API Development", "Server and Hosting Management"],
|
|
|
40 |
|
41 |
|
42 |
}
|
43 |
+
|
44 |
+
levels = ['Beginner','Intermediate','Advanced']
|
45 |
+
|
46 |
+
Question_Difficulty = ['Easy','Medium','Hard']
|
47 |
|
48 |
|
49 |
st.header("Select AI:")
|
|
|
58 |
|
59 |
# User input for quiz generation
|
60 |
## Layout in columns
|
61 |
+
col4, col1, col2 = st.columns([1, 1, 1])
|
62 |
+
col5, col3 = st.columns([1, 1])
|
63 |
+
|
64 |
+
|
65 |
+
with col4:
|
66 |
+
selected_level = st.selectbox('Select level of understanding', levels)
|
67 |
|
68 |
with col1:
|
69 |
selected_topic_level = st.selectbox('Select Role', list(roles_and_topics.keys()))
|
|
|
71 |
with col2:
|
72 |
selected_topic = st.selectbox('Select Topic', roles_and_topics[selected_topic_level])
|
73 |
|
74 |
+
|
75 |
+
|
76 |
+
|
77 |
+
|
78 |
+
with col5:
|
79 |
+
selected_Question_Difficulty = st.selectbox('Select Topic', Question_Difficulty)
|
80 |
+
|
81 |
with col3:
|
82 |
num_quizzes = st.slider('Number of Questions', min_value=1, max_value= 10, value=1)
|
83 |
|