Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1477,6 +1477,27 @@ body, .gradio-container {
|
|
1477 |
width: 500px; /* Set a custom width for the video */
|
1478 |
height: 350px; /* Set a custom height for the video */
|
1479 |
margin: 0 auto; /* Center the video horizontally */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1480 |
}
|
1481 |
"""
|
1482 |
with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
@@ -1490,9 +1511,9 @@ with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
|
1490 |
demo.load(update_message, None, m)
|
1491 |
|
1492 |
# Buttons for sample queries
|
1493 |
-
with gr.Row():
|
1494 |
-
sample_button3 = gr.Button("can you generate a doughnut chart with item name and quantities for warehouse DUBAIWARE", elem_classes="
|
1495 |
-
sample_button4 = gr.Button("Analyze item name & quantity for different customers in a stacked bar chart for the warehouse DUBAIWARE & send email to [email protected]", elem_classes="
|
1496 |
|
1497 |
# Chatbot component
|
1498 |
with gr.Row():
|
|
|
1477 |
width: 500px; /* Set a custom width for the video */
|
1478 |
height: 350px; /* Set a custom height for the video */
|
1479 |
margin: 0 auto; /* Center the video horizontally */
|
1480 |
+
}
|
1481 |
+
.row-container {
|
1482 |
+
display: flex;
|
1483 |
+
justify-content: flex-start; /* Align buttons to the left */
|
1484 |
+
gap: 10px; /* Space between buttons */
|
1485 |
+
|
1486 |
+
}
|
1487 |
+
.custom-button {
|
1488 |
+
width: 100px; /* Small width */
|
1489 |
+
height: 30px; /* Small height */
|
1490 |
+
margin-right: 10px; /* Spacing between buttons */
|
1491 |
+
text-align: center; /* Center text alignment */
|
1492 |
+
font-size: 14px; /* Adjust font size */
|
1493 |
+
background-color: #f0f0f0; /* Button background color */
|
1494 |
+
border: 1px solid #ccc; /* Border styling */
|
1495 |
+
border-radius: 5px; /* Rounded corners */
|
1496 |
+
cursor: pointer; /* Pointer cursor on hover */
|
1497 |
+
}
|
1498 |
+
|
1499 |
+
.custom-button:hover {
|
1500 |
+
background-color: #e0e0e0; /* Background color on hover */
|
1501 |
}
|
1502 |
"""
|
1503 |
with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
|
|
1511 |
demo.load(update_message, None, m)
|
1512 |
|
1513 |
# Buttons for sample queries
|
1514 |
+
with gr.Row(elem_classes=["row-container"]):
|
1515 |
+
sample_button3 = gr.Button("can you generate a doughnut chart with item name and quantities for warehouse DUBAIWARE", elem_classes="custom-button")
|
1516 |
+
sample_button4 = gr.Button("Analyze item name & quantity for different customers in a stacked bar chart for the warehouse DUBAIWARE & send email to [email protected]", elem_classes="custom-button")
|
1517 |
|
1518 |
# Chatbot component
|
1519 |
with gr.Row():
|