Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -98,7 +98,6 @@ with gr.Blocks() as nps:
|
|
| 98 |
""")
|
| 99 |
template_btn = gr.Button("Use Template", size="sm")
|
| 100 |
|
| 101 |
-
# Visual separator
|
| 102 |
gr.Markdown("---")
|
| 103 |
|
| 104 |
# Category section
|
|
@@ -111,7 +110,7 @@ with gr.Blocks() as nps:
|
|
| 111 |
reset_btn = gr.Button("Reset Categories", size="sm")
|
| 112 |
# Category display
|
| 113 |
category_status = gr.Markdown("**Categories:**\n- None")
|
| 114 |
-
with gr.Column(scale=
|
| 115 |
gr.Markdown("""
|
| 116 |
**Instructions:**
|
| 117 |
- Enter a category name and click **Add Category** to add it to the list.
|
|
@@ -119,13 +118,15 @@ with gr.Blocks() as nps:
|
|
| 119 |
- The `customer_comment` field will be categorized based on the categories you provide.
|
| 120 |
""")
|
| 121 |
|
|
|
|
|
|
|
| 122 |
# Classify button
|
|
|
|
| 123 |
classify_btn = gr.Button("Classify", size="sm")
|
| 124 |
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
output = gr.HTML()
|
| 129 |
|
| 130 |
# Event handlers
|
| 131 |
add_category_btn.click(
|
|
|
|
| 98 |
""")
|
| 99 |
template_btn = gr.Button("Use Template", size="sm")
|
| 100 |
|
|
|
|
| 101 |
gr.Markdown("---")
|
| 102 |
|
| 103 |
# Category section
|
|
|
|
| 110 |
reset_btn = gr.Button("Reset Categories", size="sm")
|
| 111 |
# Category display
|
| 112 |
category_status = gr.Markdown("**Categories:**\n- None")
|
| 113 |
+
with gr.Column(scale=1):
|
| 114 |
gr.Markdown("""
|
| 115 |
**Instructions:**
|
| 116 |
- Enter a category name and click **Add Category** to add it to the list.
|
|
|
|
| 118 |
- The `customer_comment` field will be categorized based on the categories you provide.
|
| 119 |
""")
|
| 120 |
|
| 121 |
+
gr.Markdown("---")
|
| 122 |
+
|
| 123 |
# Classify button
|
| 124 |
+
with gr.Column(scale=1):
|
| 125 |
classify_btn = gr.Button("Classify", size="sm")
|
| 126 |
|
| 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(
|