ZennyKenny commited on
Commit
036b2de
Β·
verified Β·
1 Parent(s): b644b45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
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 (25% of original size)
100
- template_btn = gr.Button("Use Template", size="sm", scale=0.25)
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 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(
 
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(