Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,10 +23,11 @@ all_questions = load_questions('knowledge.txt')
|
|
| 23 |
# ---- Simple way to assign questions to interview types ----
|
| 24 |
# You can replace this later with better tagging
|
| 25 |
questions_by_type = {
|
| 26 |
-
'Technical': [q for q in all_questions if any(keyword
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
|
|
|
| 30 |
|
| 31 |
'Competency-Based Interview': [q for q in all_questions if any(keyword in q['question'].lower() for keyword in [
|
| 32 |
"Debugging",
|
|
|
|
| 23 |
# ---- Simple way to assign questions to interview types ----
|
| 24 |
# You can replace this later with better tagging
|
| 25 |
questions_by_type = {
|
| 26 |
+
'Technical': [q for q in all_questions if any(keyword in q['question'].lower() for keyword in [
|
| 27 |
+
'function', 'linked list', 'url', 'rest', 'graphql', 'garbage', 'cap theorem', 'sql', 'hash table',
|
| 28 |
+
'stack', 'queue', 'recursion', 'reverse', 'bfs', 'dfs', 'time complexity', 'binary search tree',
|
| 29 |
+
'web application', 'chat system', 'load balancing', 'caching', 'normalization', 'acid', 'indexing',
|
| 30 |
+
'sql injection', 'https', 'xss', 'hash', 'vulnerabilities'])],
|
| 31 |
|
| 32 |
'Competency-Based Interview': [q for q in all_questions if any(keyword in q['question'].lower() for keyword in [
|
| 33 |
"Debugging",
|