cevheri commited on
Commit
7a0c5f8
Β·
1 Parent(s): feac34e

docs: add new samples for gradio

Browse files
Files changed (1) hide show
  1. app.py +7 -24
app.py CHANGED
@@ -125,26 +125,16 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Soft()) as demo:
125
  scale=4
126
  ),
127
  theme="soft",
128
- # examples=[
129
- # "Describe the database",
130
- # "List all tables in the database",
131
- # "List all tables with columns and data types",
132
- # "How many customers do you have?",
133
- # "What are the statuses my of my customers",
134
- # "Visualize with different colors and show legend",
135
- # "What are the statues of my customers and how many are in each status, show it by percentage",
136
- # "Total number of completed orders in six years by customer count show top most 10 customers",
137
- # "In january how many products has been sold ? group them by year",
138
- # "How many users and roles have been created in 2024"
139
- # ],
140
  examples=[
141
  "Describe the database",
142
  "List all tables in the database",
 
 
143
  "List all tables with columns and data types",
144
  "How many comments are there per ticket channel (email, chat, portal)? Also Visualize it as a pie chart",
145
- "Visualize with different colors and show legend",
146
  "How many customers are in each industry?",
147
- "List the 5 most active agents by ticket count in 2024.",
148
  "How many tickets were reopened at least once?"
149
  ],
150
  save_history=True,
@@ -152,19 +142,12 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Soft()) as demo:
152
  )
153
  with gr.Column(scale=1):
154
  with gr.Accordion("Example Questions", open=True):
155
- # gr.Markdown("""
156
- # - πŸ“Š List all tables in database
157
- # - πŸ‘₯ Total number of customers
158
- # - πŸ“ˆ Visualize it with different colors
159
- # - πŸ“‹ Order statistics for last 6 years
160
- # - πŸ“† User and role counts in 2024
161
- # """)
162
  gr.Markdown("""
163
  - πŸ“Š List all tables in database
164
  - πŸ‘₯ Total number of customers
165
- - πŸ“ˆ Visualize it with different colors
166
- - πŸ“‹ Order statistics for last 6 years
167
- - πŸ“† Average ticket reopen count per year
168
  """)
169
 
170
 
 
125
  scale=4
126
  ),
127
  theme="soft",
 
 
 
 
 
 
 
 
 
 
 
 
128
  examples=[
129
  "Describe the database",
130
  "List all tables in the database",
131
+ "Show me the top 10 customers by ticket count and visualize it bar chart with different colors",
132
+ "Show distribution of tickets by status, use pie chart",
133
  "List all tables with columns and data types",
134
  "How many comments are there per ticket channel (email, chat, portal)? Also Visualize it as a pie chart",
135
+ "Show top 5 products with highest number of tickets in a bar chart, add legand, print product names vertically",
136
  "How many customers are in each industry?",
137
+ "List the 5 most active agents by ticket count in 2025.",
138
  "How many tickets were reopened at least once?"
139
  ],
140
  save_history=True,
 
142
  )
143
  with gr.Column(scale=1):
144
  with gr.Accordion("Example Questions", open=True):
 
 
 
 
 
 
 
145
  gr.Markdown("""
146
  - πŸ“Š List all tables in database
147
  - πŸ‘₯ Total number of customers
148
+ - πŸ“ˆ Top 10 customers by ticket count
149
+ - πŸ“‹ Ticket count by status and visualize
150
+ - πŸ“† Average ticket reopen count per year and month
151
  """)
152
 
153