petrified commited on
Commit
358eff7
·
verified ·
1 Parent(s): 8135229

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -193,7 +193,7 @@ def random_response(message):
193
 
194
 
195
  try:
196
- temp_chart = lida.visualize(summary=summary, goal=insights[0]+'Graph heigh 800,width 1000.If multipul data shows,Only show the top 5 or 10 datas.If there is statement in previous question using monthly data,other time related using daily.set different color to the graph,x label rotate 45 degree,do not use the guide line', textgen_config=text_gen_config,library='matplotlib')
197
  print(f'*'*50)
198
  code = temp_chart[0].code
199
  print(f"{code}")
@@ -254,7 +254,8 @@ with gr.Blocks() as demo:
254
  chat_input = gr.Textbox(placeholder="Type your message here...", label="Chat")
255
  examples = gr.Examples(
256
  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??',
257
- 'Sales amount distribution by age','Sales amount distribution by gender','Sales qty trend by time using line chart'
 
258
  ],
259
  inputs=chat_input
260
  )
 
193
 
194
 
195
  try:
196
+ temp_chart = lida.visualize(summary=summary, goal=insights[0]+'Graph heigh 800,width 1000.If multipul data shows,Only show the top 5 or 10 datas.If there is statement in previous question using monthly data,other time related using daily.set different color to the graph,x label rotate 60 degree,do not use the guide line', textgen_config=text_gen_config,library='matplotlib')
197
  print(f'*'*50)
198
  code = temp_chart[0].code
199
  print(f"{code}")
 
254
  chat_input = gr.Textbox(placeholder="Type your message here...", label="Chat")
255
  examples = gr.Examples(
256
  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??',
257
+ 'Sales amount distribution by age','Sales amount distribution by gender','Sales qty trend by time using line chart',
258
+ 'Top customer by sales amount'
259
  ],
260
  inputs=chat_input
261
  )