aasiavakil commited on
Commit
7a4481a
·
verified ·
1 Parent(s): e4ec05d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -44,11 +44,11 @@ def chatbot(message, history):
44
  if key in message:
45
  return program_explanations[key] + "\n\nAnything else you'd like help with?"
46
 
47
- program_explanations = {
48
  "medicaid": "Medicaid (called Apple Health in Washington) is a free or low-cost health coverage program for eligible low-income adults, children, pregnant women, and people with disabilities.",
49
  "medicare": "Medicare is a federal health insurance program mainly for people age 65 or older and certain younger people with disabilities.",
50
  "aca": "ACA subsidies are financial help from the Affordable Care Act that reduce your monthly insurance premium based on your income.",
51
- }
52
  # EXPLANATION TRIGGER FIX
53
  if any(phrase in message for phrase in ["what does that mean", "what's that", "explain", "what is that"]):
54
  program = conversation_state.get("last_eligible_program")
 
44
  if key in message:
45
  return program_explanations[key] + "\n\nAnything else you'd like help with?"
46
 
47
+ program_explanations = {
48
  "medicaid": "Medicaid (called Apple Health in Washington) is a free or low-cost health coverage program for eligible low-income adults, children, pregnant women, and people with disabilities.",
49
  "medicare": "Medicare is a federal health insurance program mainly for people age 65 or older and certain younger people with disabilities.",
50
  "aca": "ACA subsidies are financial help from the Affordable Care Act that reduce your monthly insurance premium based on your income.",
51
+ }
52
  # EXPLANATION TRIGGER FIX
53
  if any(phrase in message for phrase in ["what does that mean", "what's that", "explain", "what is that"]):
54
  program = conversation_state.get("last_eligible_program")