Redmind commited on
Commit
23a5d0e
·
verified ·
1 Parent(s): a53b75f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1158,7 +1158,7 @@ def chat_with_excel_data_dataframe(question):
1158
  if isinstance(response_dataframe, int):
1159
  return response_dataframe
1160
 
1161
- print(str.lower("No employee details") not in response_dataframe)
1162
  if str.lower("No employee details") not in str.lower(response_dataframe):
1163
  if ":" in response_dataframe:
1164
 
@@ -1171,6 +1171,8 @@ def chat_with_excel_data_dataframe(question):
1171
 
1172
  # Convert the list of names to a DataFrame
1173
  response_dataframe = pd.DataFrame(names, columns=["Result"])
 
 
1174
  else:
1175
  print("The result is a message.")
1176
  return response_dataframe
 
1158
  if isinstance(response_dataframe, int):
1159
  return response_dataframe
1160
 
1161
+ #print(str.lower("No employee details") not in response_dataframe)
1162
  if str.lower("No employee details") not in str.lower(response_dataframe):
1163
  if ":" in response_dataframe:
1164
 
 
1171
 
1172
  # Convert the list of names to a DataFrame
1173
  response_dataframe = pd.DataFrame(names, columns=["Result"])
1174
+ else:
1175
+ return response_dataframe
1176
  else:
1177
  print("The result is a message.")
1178
  return response_dataframe