Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
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
|
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 |
|