Spaces:
Running
Running
Commit
·
b1241e9
1
Parent(s):
31a3825
updated
Browse files
app.py
CHANGED
|
@@ -912,8 +912,35 @@ def create_gradio_interface():
|
|
| 912 |
min_split_length = gr.Slider(10, 40, value=20, step=5, label="Min Split Length (words)")
|
| 913 |
max_merge_length = gr.Slider(5, 20, value=10, step=1, label="Max Merge Length (words)")
|
| 914 |
|
| 915 |
-
|
| 916 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 917 |
# Event handlers
|
| 918 |
submit_btn.click(
|
| 919 |
fn=humanize_text,
|
|
|
|
| 912 |
min_split_length = gr.Slider(10, 40, value=20, step=5, label="Min Split Length (words)")
|
| 913 |
max_merge_length = gr.Slider(5, 20, value=10, step=1, label="Max Merge Length (words)")
|
| 914 |
|
| 915 |
+
with gr.Accordion("Final Stage: LLM Review", open=False):
|
| 916 |
+
gr.Markdown(
|
| 917 |
+
"""
|
| 918 |
+
The final stage employs a large language model to review and refine the transformed text. It identifies and corrects any inappropriate word choices, grammatical errors, or inconsistencies to ensure the output is of the highest quality.
|
| 919 |
+
"""
|
| 920 |
+
)
|
| 921 |
+
|
| 922 |
+
with gr.Accordion("About Neural Humanizer", open=False):
|
| 923 |
+
gr.Markdown(
|
| 924 |
+
"""
|
| 925 |
+
**Neural Humanizer** is an advanced text transformation tool designed to convert AI-generated content into natural, human-like language. By leveraging a multi-stage pipeline, it enhances text fluency, diversity, and academic integrity.
|
| 926 |
+
|
| 927 |
+
### Key Features:
|
| 928 |
+
- **Paraphrasing**: Utilizes state-of-the-art language models to rephrase text while preserving meaning.
|
| 929 |
+
- **Lexical Diversification**: Replaces words with contextually appropriate synonyms for richer vocabulary.
|
| 930 |
+
- **Discourse Enrichment**: Adds academic discourse markers to improve formality and coherence.
|
| 931 |
+
- **Structural Variation**: Modifies sentence structures for enhanced readability.
|
| 932 |
+
- **LLM-powered Review**: Employs large language models to validate and refine the final output.
|
| 933 |
+
|
| 934 |
+
### Usage:
|
| 935 |
+
1. Input your AI-generated text.
|
| 936 |
+
2. Configure the desired stages and parameters.
|
| 937 |
+
3. Click "Transform Text" to generate humanized content.
|
| 938 |
+
|
| 939 |
+
### Note:
|
| 940 |
+
The final review stage is always applied to ensure the highest quality output.
|
| 941 |
+
"""
|
| 942 |
+
)
|
| 943 |
+
|
| 944 |
# Event handlers
|
| 945 |
submit_btn.click(
|
| 946 |
fn=humanize_text,
|