igrisds commited on
Commit
4499016
1 Parent(s): 28522a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -118,11 +118,13 @@ def ask_ds(message, history):
118
  yield "Please select a valid choice."
119
 
120
  elif employee_type == None:
 
 
121
  employee_types = {'1': 'csr', '2': 'qa'}
122
  if message.lower().strip() in list(employee_types.values()):
123
  employee_type = message.lower().strip()
124
  authenticated = True
125
- EXTRACTIONS_PATH = EXTRACTIONS_PATH.replace('{employee_type}', employee_type).replace('{division}', division[:3])
126
  yield EXTRACTIONS_PATH
127
  extractions = read_json_from_s3()
128
  yield "Welcome to Ask Dane Street! Whether you're new to the team or just looking for some quick information, I'm here to guide you through our company's literature and platform. Simply ask your question, and I'll provide you with the most relevant information I can."
 
118
  yield "Please select a valid choice."
119
 
120
  elif employee_type == None:
121
+ if division == 'peer disability':
122
+ division = 'dis'
123
  employee_types = {'1': 'csr', '2': 'qa'}
124
  if message.lower().strip() in list(employee_types.values()):
125
  employee_type = message.lower().strip()
126
  authenticated = True
127
+ EXTRACTIONS_PATH = EXTRACTIONS_PATH.replace('{employee-type}', employee_type).replace('{division}', division[:3])
128
  yield EXTRACTIONS_PATH
129
  extractions = read_json_from_s3()
130
  yield "Welcome to Ask Dane Street! Whether you're new to the team or just looking for some quick information, I'm here to guide you through our company's literature and platform. Simply ask your question, and I'll provide you with the most relevant information I can."