Redmind commited on
Commit
0a8efe8
·
verified ·
1 Parent(s): 9578748

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1064,7 +1064,7 @@ def add_to_redmindgpt(title, summary):
1064
  description=f"""You are an AI assistant trained to handle Excel data and return meaningful insights. If user query is given with an option of generating the document with the result set dataframe, pass two inputs to the tool. First input is the user query and the second input will be the phrase "create document". display the response only in the below format.
1065
  {docstatus}. Here is the sample data:
1066
  {sample_table}.
1067
- Please provide the total rows count from the {total_rows} values returned by the function and not the count of sample table rows. If there is any error, please display the message returned by the function as response. """
1068
  )
1069
 
1070
  # Add the new tool to the beginning
@@ -1241,7 +1241,8 @@ def handle_large_dataset(df, create_document,isDataFrame):
1241
  create_file_HF(zip_file_name,directory, False)
1242
  link = get_download_link(directory,zip_file_name)
1243
  print(f"downloadable link: {link}")
1244
- docstatus = f"""Please download <a href="{dataset_link}" download>excel</a>"""#, <a href="{link}" download>PDFs</a>."""
 
1245
  print(sample_table)
1246
  # 5. Return the summary and downloadable link
1247
  #return f"""
 
1064
  description=f"""You are an AI assistant trained to handle Excel data and return meaningful insights. If user query is given with an option of generating the document with the result set dataframe, pass two inputs to the tool. First input is the user query and the second input will be the phrase "create document". display the response only in the below format.
1065
  {docstatus}. Here is the sample data:
1066
  {sample_table}.
1067
+ If there is any error, please display the message returned by the function as response. """
1068
  )
1069
 
1070
  # Add the new tool to the beginning
 
1241
  create_file_HF(zip_file_name,directory, False)
1242
  link = get_download_link(directory,zip_file_name)
1243
  print(f"downloadable link: {link}")
1244
+ docstatus = f"""Please download <a href="{dataset_link}" download>excel</a> and <a href="{link}" download>PDFs</a>."""
1245
+ print(docstatus)
1246
  print(sample_table)
1247
  # 5. Return the summary and downloadable link
1248
  #return f"""