addcorpbc commited on
Commit ·
708aaf1
1
Parent(s): e818404
Add Magic City Career Counselor chatbot
Browse files12345678910111213141516171819202122232425262728293031323334353637import gradio as gr
# Greeting messagegreeting = """Hi, I'm your Magic City Career Counselor! Big Magic made me to help you plan for your future. He cares about his employees and wants to make sure you have a future after Magic City. To do that, we've consulted dozens of experts to help you decide on the direction you may want to take in the future. They provided us with several tools to analyze what might best fit your personality and goals.
We offer five different assessments you can take, or we can simply chat about your plans. The assessments include: 1. The Myers-Briggs Type Indicator 2. The Indecisiveness Scale 3. RIASEC 4. The Career Thought Inventory 5. The Career Values Card Sort
If you'd like to know more about what these assessments cover, just ask! Then, we can decide on which one(s) to take to better understand what might suit you."""
# Chatbot functiondef chatbot(user_input): if "myers briggs" in user_input.lower(): return "The Myers-Briggs Type Indicator analyzes your personality traits to suggest career paths." elif "ria" in user_input.lower(): return "RIASEC identifies your interests and matches them to suitable careers." else: return "Let’s get started! What would you like to do today?"
# Chatbot UIchatbot_ui = gr.Interface( fn=chatbot, inputs="text", outputs="text", title="Magic City Career Counselor", description=greeting)
# Launch the chatbotchatbot_ui.launch()greeting.pyAdded+37