maslionok
commited on
Commit
·
a3bfb5a
1
Parent(s):
e8f3947
fix
Browse files
app.py
CHANGED
|
@@ -67,20 +67,17 @@ with gr.Blocks(title="Solr Normalization Demo") as demo:
|
|
| 67 |
submit_btn = gr.Button("🚀 Normalize Text", variant="primary")
|
| 68 |
|
| 69 |
with gr.Column():
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
elem_id="info-btn",
|
| 82 |
-
title="Tokenization: Splits text into individual tokens | Stopword Removal: Identifies and removes common words | Language Detection: Automatically detects text language | Normalization: Applies language-specific text transformations"
|
| 83 |
-
)
|
| 84 |
|
| 85 |
submit_btn.click(
|
| 86 |
fn=normalize,
|
|
|
|
| 67 |
submit_btn = gr.Button("🚀 Normalize Text", variant="primary")
|
| 68 |
|
| 69 |
with gr.Column():
|
| 70 |
+
output = gr.Textbox(
|
| 71 |
+
label="Normalized Output",
|
| 72 |
+
lines=15,
|
| 73 |
+
placeholder="Results will appear here..."
|
| 74 |
+
)
|
| 75 |
+
gr.Markdown(
|
| 76 |
+
"""
|
| 77 |
+
<small>ℹ️ **Pipeline Info:** Tokenization → Stopword Removal → Language Detection → Normalization</small>
|
| 78 |
+
""",
|
| 79 |
+
elem_id="pipeline-info"
|
| 80 |
+
)
|
|
|
|
|
|
|
|
|
|
| 81 |
|
| 82 |
submit_btn.click(
|
| 83 |
fn=normalize,
|