Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -176,7 +176,6 @@ def random_response(message):
|
|
| 176 |
# "Your output will be used to guide the graph generation by python using ploty, so make it simple and easier to process data."
|
| 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 |
-
"If question is will have top or similar words like hot selling for some index, default it as 10"
|
| 180 |
"The visualization should align with the question and the data."
|
| 181 |
"Usually, when deal with:age, show all the data."
|
| 182 |
"But for other datas beside age: customer,prouct,sales,qty,etc show top 10."
|
|
@@ -268,7 +267,7 @@ with gr.Blocks() as demo:
|
|
| 268 |
with gr.Column():
|
| 269 |
chat_input = gr.Textbox(placeholder="Type your message here...", label="Chat")
|
| 270 |
examples = gr.Examples(
|
| 271 |
-
examples=['Top
|
| 272 |
'Sales amount distribution by age','Sales amount distribution by gender',
|
| 273 |
'Top customer by sales amount'
|
| 274 |
],
|
|
|
|
| 176 |
# "Your output will be used to guide the graph generation by python using ploty, so make it simple and easier to process data."
|
| 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."
|
|
|
|
| 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 top selling at product level??',
|
| 271 |
'Sales amount distribution by age','Sales amount distribution by gender',
|
| 272 |
'Top customer by sales amount'
|
| 273 |
],
|