Spaces:
Runtime error
Runtime error
Update app.py
Browse files23 unmodified lines242526272829303191 unmodified lines12312412512612712812913013123 unmodified lines# You can replace this later with better taggingquestions_by_type = {'Technical': [q for q in all_questions if any(keyword in q['question'].lower() for keyword in ['function', 'algorithm', 'sql', 'system', 'java', 'programming', 'data', 'design', 'api', 'distributed', 'garbage', 'hash', 'stack', 'bfs', 'dfs'])],'Behavioral': [q for q in all_questions if any(keyword in q['question'].lower() for keyword in ['tell me about a time', 'describe a situation', 'example of', 'negotiation', 'lead', 'mistake', 'stakeholder'])],'College': [] # For now keep empty unless you add questions for this}# ---- Hugging Face Client ----91 unmodified linesgr.Markdown("### Step 1: Choose Interview Type")with gr.Row():with gr.Column():btn1 = gr.Button("Behavioral")btn2 = gr.Button("Technical")btn3 = gr.Button("College / Scholarship")type_output = gr.Textbox(label="Bot response", interactive=False)btn1.click(set_type, inputs=[gr.Textbox(value="Behavioral", visible=False), user_profile], outputs=[type_output, user_profile])23 unmodified lines242526272829303191 unmodified lines12312412512612712812913013123 unmodified lines# You can replace this later with better taggingquestions_by_type = {'Technical': [q for q in all_questions if any(keyword in q['question'].lower() for keyword in ['function', 'algorithm', 'sql', 'system', 'java', 'programming', 'data', 'design', 'api', 'distributed', 'garbage', 'hash', 'stack', 'bfs', 'dfs'])],'Competency-Based Interview': [q for q in all_questions if any(keyword in q['question'].lower() for keyword in ['tell me about a time', 'describe a situation', 'example of', 'negotiation', 'lead', 'mistake', 'stakeholder'])],'Case': []}# ---- Hugging Face Client ----91 unmodified linesgr.Markdown("### Step 1: Choose Interview Type")with gr.Row():with gr.Column():btn1 = gr.Button("Technical")btn2 = gr.Button("Competency-Based Interview")btn3 = gr.Button("Case")type_output = gr.Textbox(label="Bot response", interactive=False)btn1.click(set_type, inputs=[gr.Textbox(value="Behavioral", visible=False), user_profile], outputs=[type_output, user_profile])
app.py+5-5