Redmind commited on
Commit
7d155e0
·
verified ·
1 Parent(s): 64441dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1057,7 +1057,7 @@ def generate_prompt_from_excel_file(df_dict):
1057
  prompt += f"- Query: A natural language question with request to create LOA document (e.g., can you create LOA document for all the employees with broker name XXXX). The question should be sent as 'What are the employee details with broker name XXXX : LOA document'."
1058
  prompt += f"""Output: {docstatus}. Here is the sample table:
1059
  {sample_table}.
1060
- If there is any error, please display the message returned by the function as response. """
1061
 
1062
 
1063
  return "Excel data", prompt
 
1057
  prompt += f"- Query: A natural language question with request to create LOA document (e.g., can you create LOA document for all the employees with broker name XXXX). The question should be sent as 'What are the employee details with broker name XXXX : LOA document'."
1058
  prompt += f"""Output: {docstatus}. Here is the sample table:
1059
  {sample_table}.
1060
+ If there is any error, please display the message returned by the function as response. If there are less than or equal to three rows in the response dataframe, dont mention the word sample table in the output. Mention it as table"""
1061
 
1062
 
1063
  return "Excel data", prompt