Shreyas094 commited on
Commit
5554476
·
verified ·
1 Parent(s): e3b0733

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -356,8 +356,8 @@ def get_response_from_excel(query, model, context, num_calls=3, temperature=0.2)
356
  logging.info(f"Getting response from Excel using model: {model}")
357
 
358
  messages = [
359
- {"role": "system", "content": "You are a highly specialized data analyst with expertise in analyzing and summarizing Excel spreadsheets. Your goal is to provide accurate, detailed, and precise summaries based on the data provided. Focus on identifying key metrics, trends, and significant details relevant to the query. Avoid making assumptions or adding information that is not explicitly supported by the data."},
360
- {"role": "user", "content": f"Using the following data extracted from Excel spreadsheets:\n{context}\n\nPlease analyze this data and provide a comprehensive answer to the following question: '{query}'. Include relevant statistics, trends, and insights. If appropriate, suggest visualizations that could help illustrate the findings."}
361
  ]
362
 
363
  if model.startswith("duckduckgo/"):
 
356
  logging.info(f"Getting response from Excel using model: {model}")
357
 
358
  messages = [
359
+ {"role": "system", "content": "You are a highly specialized data analyst with expertise in analyzing and summarizing Excel spreadsheets. Your goal is to provide accurate, detailed, and precise information on the data provided. Focus on identifying key metrics, trends, and significant details relevant to the query. Avoid making assumptions or adding information that is not explicitly supported by the data."},
360
+ {"role": "user", "content": f"Using the following data extracted from Excel spreadsheets:\n{context}\n\nPlease analyze this data and provide a comprehensive answer to the following question: '{query}'. If appropriate, suggest visualizations that could help illustrate the findings."}
361
  ]
362
 
363
  if model.startswith("duckduckgo/"):