petrified commited on
Commit
1bcd619
·
verified ·
1 Parent(s): 735c827

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -170,8 +170,7 @@ def random_response(message):
170
 
171
  str_summary = str(summary)
172
  prompt = ChatPromptTemplate.from_template("Based on the data below:{str_summary},"
173
- "please help me adjust the question: {question} with the way that can visualize."
174
- "Your insight will be used to guide the graph generation by python using ploty, so make it simple and easier to process data."
175
  "For example: 'Goal(question='What are the sales trends by product category?visualization='bar chart of prod_category against sum(trxn_item_qty) grouped by trxn_date'."
176
  "If the data columns is empty, please ignore the column."
177
  "Only output 1 question."
 
170
 
171
  str_summary = str(summary)
172
  prompt = ChatPromptTemplate.from_template("Based on the data below:{str_summary},"
173
+ "please give me the most related and useful possible question to get simple but useful insights for {question}."
 
174
  "For example: 'Goal(question='What are the sales trends by product category?visualization='bar chart of prod_category against sum(trxn_item_qty) grouped by trxn_date'."
175
  "If the data columns is empty, please ignore the column."
176
  "Only output 1 question."