Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -459,6 +459,7 @@ with gr.Blocks(title="Feedback Topic & Sentiment Transformer", css="""
|
|
459 |
with gr.Row():
|
460 |
with gr.Column(scale=1):
|
461 |
# File upload
|
|
|
462 |
input_file = gr.File(
|
463 |
label="Upload Input File",
|
464 |
file_types=[".xlsx", ".xls", ".csv", ".txt"],
|
@@ -466,7 +467,7 @@ with gr.Blocks(title="Feedback Topic & Sentiment Transformer", css="""
|
|
466 |
)
|
467 |
|
468 |
# Combined column selector (replaces both preview and checkboxes)
|
469 |
-
gr.Markdown("### π Column Selection")
|
470 |
column_selector = gr.CheckboxGroup(
|
471 |
choices=[],
|
472 |
value=[],
|
@@ -476,7 +477,7 @@ with gr.Blocks(title="Feedback Topic & Sentiment Transformer", css="""
|
|
476 |
|
477 |
with gr.Column(scale=1):
|
478 |
# Configuration parameters
|
479 |
-
gr.Markdown("### βοΈ Configuration")
|
480 |
|
481 |
topic_prefix = gr.Textbox(
|
482 |
label="Topic Column Prefix",
|
@@ -520,7 +521,7 @@ with gr.Blocks(title="Feedback Topic & Sentiment Transformer", css="""
|
|
520 |
)
|
521 |
|
522 |
# Transform button
|
523 |
-
transform_btn = gr.Button("π Transform Data", variant="primary", size="lg")
|
524 |
|
525 |
# Output sections
|
526 |
with gr.Row():
|
@@ -539,7 +540,7 @@ with gr.Blocks(title="Feedback Topic & Sentiment Transformer", css="""
|
|
539 |
# Download section - Modified for better download functionality
|
540 |
with gr.Row():
|
541 |
with gr.Column():
|
542 |
-
gr.Markdown("### π₯ Download Transformed File")
|
543 |
output_file = gr.File(
|
544 |
label="Transformed File",
|
545 |
interactive=False,
|
|
|
459 |
with gr.Row():
|
460 |
with gr.Column(scale=1):
|
461 |
# File upload
|
462 |
+
gr.Markdown("### π 1. Source file upload")
|
463 |
input_file = gr.File(
|
464 |
label="Upload Input File",
|
465 |
file_types=[".xlsx", ".xls", ".csv", ".txt"],
|
|
|
467 |
)
|
468 |
|
469 |
# Combined column selector (replaces both preview and checkboxes)
|
470 |
+
gr.Markdown("### π 2. Column Selection")
|
471 |
column_selector = gr.CheckboxGroup(
|
472 |
choices=[],
|
473 |
value=[],
|
|
|
477 |
|
478 |
with gr.Column(scale=1):
|
479 |
# Configuration parameters
|
480 |
+
gr.Markdown("### βοΈ 3. Configuration of column prefixes ")
|
481 |
|
482 |
topic_prefix = gr.Textbox(
|
483 |
label="Topic Column Prefix",
|
|
|
521 |
)
|
522 |
|
523 |
# Transform button
|
524 |
+
transform_btn = gr.Button("π 4. Transform Data", variant="primary", size="lg")
|
525 |
|
526 |
# Output sections
|
527 |
with gr.Row():
|
|
|
540 |
# Download section - Modified for better download functionality
|
541 |
with gr.Row():
|
542 |
with gr.Column():
|
543 |
+
gr.Markdown("### π₯ 5. Download Transformed File")
|
544 |
output_file = gr.File(
|
545 |
label="Transformed File",
|
546 |
interactive=False,
|