Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -96,8 +96,8 @@ 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 |
# Visual separator
|
103 |
gr.Markdown("---")
|
@@ -123,11 +123,10 @@ with gr.Blocks() as nps:
|
|
123 |
# Classify button
|
124 |
classify_btn = gr.Button("Classify", size="sm")
|
125 |
|
126 |
-
# Output container with loading
|
127 |
with gr.Row():
|
128 |
with gr.Column(scale=3): # Center the container and make it 75% of the window width
|
129 |
-
|
130 |
-
output = gr.HTML()
|
131 |
|
132 |
# Event handlers
|
133 |
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 (smaller size)
|
100 |
+
template_btn = gr.Button("Use Template", size="sm")
|
101 |
|
102 |
# Visual separator
|
103 |
gr.Markdown("---")
|
|
|
123 |
# Classify button
|
124 |
classify_btn = gr.Button("Classify", size="sm")
|
125 |
|
126 |
+
# Output container with loading spinner
|
127 |
with gr.Row():
|
128 |
with gr.Column(scale=3): # Center the container and make it 75% of the window width
|
129 |
+
output = gr.HTML()
|
|
|
130 |
|
131 |
# Event handlers
|
132 |
add_category_btn.click(
|