Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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."
|