docs: add new samples for gradio
Browse files
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 |
-
"
|
| 146 |
"How many customers are in each industry?",
|
| 147 |
-
"List the 5 most active agents by ticket count in
|
| 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 |
-
- π
|
| 166 |
-
- π
|
| 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 |
|