Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -177,8 +177,8 @@ def random_response(message):
|
|
| 177 |
"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'. and"
|
| 178 |
"'Goal(question='Who are the top customers based on transaction count?', visualization='Bar chart of customer_name vs. count(trxn_id)')"
|
| 179 |
"The visualization should align with the question and the data."
|
| 180 |
-
"Usually, when
|
| 181 |
-
"But for other datas: customer,prouct,sales,qty,etc show top 10."
|
| 182 |
"Process the top data at last when put in the graph."
|
| 183 |
"When ask customers,customer, it means customer_name."
|
| 184 |
"When ask product, it means prod_name."
|
|
@@ -267,7 +267,7 @@ with gr.Blocks() as demo:
|
|
| 267 |
with gr.Column():
|
| 268 |
chat_input = gr.Textbox(placeholder="Type your message here...", label="Chat")
|
| 269 |
examples = gr.Examples(
|
| 270 |
-
examples=['Top 10 prod_cate sales', 'Top product in category Seafood','Total sales amount by product category each day','What are the hot selling at product level??',
|
| 271 |
'Sales amount distribution by age','Sales amount distribution by gender',
|
| 272 |
'Top customer by sales amount'
|
| 273 |
],
|
|
|
|
| 177 |
"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'. and"
|
| 178 |
"'Goal(question='Who are the top customers based on transaction count?', visualization='Bar chart of customer_name vs. count(trxn_id)')"
|
| 179 |
"The visualization should align with the question and the data."
|
| 180 |
+
"Usually, when deal with:age, show all the data."
|
| 181 |
+
"But for other datas beside age: customer,prouct,sales,qty,etc show top 10."
|
| 182 |
"Process the top data at last when put in the graph."
|
| 183 |
"When ask customers,customer, it means customer_name."
|
| 184 |
"When ask product, it means prod_name."
|
|
|
|
| 267 |
with gr.Column():
|
| 268 |
chat_input = gr.Textbox(placeholder="Type your message here...", label="Chat")
|
| 269 |
examples = gr.Examples(
|
| 270 |
+
examples=['Top 10 prod_cate sales', 'Top product in category Seafood','Total sales amount by product category each day using line chart','What are the hot selling at product level??',
|
| 271 |
'Sales amount distribution by age','Sales amount distribution by gender',
|
| 272 |
'Top customer by sales amount'
|
| 273 |
],
|