Redmind commited on
Commit
423b9a8
·
verified ·
1 Parent(s): 72eb6f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -756,7 +756,7 @@ def answer_question_thread(user_question, chatbot,audio=None):
756
  return user_question, response_text
757
  else:
758
  if ("max iterations" in response_text):
759
- response_text = "Sorry. I could not respond your query at the moment. This query is taking a lot of time. Please rephrase your query"
760
 
761
  return user_question, response_text
762
  # response_text = response_text.replace('\n', ' ').replace(' ', ' ').strip()
@@ -1178,7 +1178,7 @@ def chat_with_excel_data_dataframe(question):
1178
  print("The result is a message.")
1179
  return response_dataframe
1180
  if len(response_dataframe) == 0:
1181
- return "There is no employee with the name you requested. Please rephrase your query."
1182
  #handle large dataset
1183
  response = handle_large_dataset(response_dataframe, create_document,isDataFrame)
1184
 
 
756
  return user_question, response_text
757
  else:
758
  if ("max iterations" in response_text):
759
+ response_text = "Sorry. I could not respond your query at the moment. Please try after some time."
760
 
761
  return user_question, response_text
762
  # response_text = response_text.replace('\n', ' ').replace(' ', ' ').strip()
 
1178
  print("The result is a message.")
1179
  return response_dataframe
1180
  if len(response_dataframe) == 0:
1181
+ return "There is no employee with the name you requested. Please mention the employee name in the excel document."
1182
  #handle large dataset
1183
  response = handle_large_dataset(response_dataframe, create_document,isDataFrame)
1184