Spaces:
Runtime error
Runtime error
Update app.py
Browse files37 unmodified lines383940414243444546474849505136 unmodified lines8889908384859192939495969737 unmodified linesdef set_type(choice): user_profile["interview_type"] = choice.lower() return "Great! Whatβs your background and what field/role are you aiming for?"def set_type_behavioral(): return set_type("Behavioral")
def set_type_technical(): return set_type("Technical")
def set_type_college(): return set_type("College")
# Phase 2: Save backgrounddef save_background(info):36 unmodified lines btn2 = gr.Button("Technical") btn3 = gr.Button("College / Scholarship")
btn1.click(set_type, inputs=[], outputs=type_out, _js="() => 'Behavioral'") btn2.click(set_type, inputs=[], outputs=type_out, _js="() => 'Technical'") btn3.click(set_type, inputs=[], outputs=type_out, _js="() => 'College'") btn1.click(set_type_behavioral, outputs=type_out) btn2.click(set_type_technical, outputs=type_out) btn3.click(set_type_college, outputs=type_out)
gr.Markdown("## Step 2: Enter Background") background = gr.Textbox(label="Your background + field/goal")app.py+12-3