Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1152,6 +1152,9 @@ def chat_with_excel_data_dataframe(question):
|
|
1152 |
if isinstance(response_dataframe, pd.DataFrame) == False:
|
1153 |
|
1154 |
print("The result is not a DataFrame.")
|
|
|
|
|
|
|
1155 |
print(str.lower("No employee details") not in response_dataframe)
|
1156 |
if str.lower("No employee details") not in str.lower(response_dataframe):
|
1157 |
if ":" in response_dataframe:
|
|
|
1152 |
if isinstance(response_dataframe, pd.DataFrame) == False:
|
1153 |
|
1154 |
print("The result is not a DataFrame.")
|
1155 |
+
if isinstance(response_dataframe, int):
|
1156 |
+
return response_dataframe
|
1157 |
+
|
1158 |
print(str.lower("No employee details") not in response_dataframe)
|
1159 |
if str.lower("No employee details") not in str.lower(response_dataframe):
|
1160 |
if ":" in response_dataframe:
|