Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -96,8 +96,11 @@ with gr.Blocks() as nps:
|
|
96 |
- Upload a CSV file with at least one column: `customer_comment`.
|
97 |
- If you don't have your own data, click **Use Template** to load a sample dataset.
|
98 |
""")
|
99 |
-
# Use Template button
|
100 |
-
template_btn = gr.Button("Use Template", size="sm")
|
|
|
|
|
|
|
101 |
|
102 |
# Category section
|
103 |
with gr.Row():
|
@@ -120,10 +123,11 @@ with gr.Blocks() as nps:
|
|
120 |
# Classify button
|
121 |
classify_btn = gr.Button("Classify", size="sm")
|
122 |
|
123 |
-
# Output container
|
124 |
with gr.Row():
|
125 |
with gr.Column(scale=3): # Center the container and make it 75% of the window width
|
126 |
-
|
|
|
127 |
|
128 |
# Event handlers
|
129 |
add_category_btn.click(
|
|
|
96 |
- Upload a CSV file with at least one column: `customer_comment`.
|
97 |
- If you don't have your own data, click **Use Template** to load a sample dataset.
|
98 |
""")
|
99 |
+
# Use Template button (25% of original size)
|
100 |
+
template_btn = gr.Button("Use Template", size="sm", scale=0.25)
|
101 |
+
|
102 |
+
# Visual separator
|
103 |
+
gr.Markdown("---")
|
104 |
|
105 |
# Category section
|
106 |
with gr.Row():
|
|
|
123 |
# Classify button
|
124 |
classify_btn = gr.Button("Classify", size="sm")
|
125 |
|
126 |
+
# Output container with loading widget
|
127 |
with gr.Row():
|
128 |
with gr.Column(scale=3): # Center the container and make it 75% of the window width
|
129 |
+
with gr.Loading(): # Show loading spinner while processing
|
130 |
+
output = gr.HTML()
|
131 |
|
132 |
# Event handlers
|
133 |
add_category_btn.click(
|