Commit
·
31a3825
1
Parent(s):
73be5fd
updated
Browse files
app.py
CHANGED
|
@@ -782,6 +782,7 @@ def humanize_text(
|
|
| 782 |
|
| 783 |
# LLM Review
|
| 784 |
result = validateText(original,result)
|
|
|
|
| 785 |
|
| 786 |
# Calculate similarity
|
| 787 |
similarity = calculate_similarity(input_text, result)
|
|
@@ -884,7 +885,7 @@ def create_gradio_interface():
|
|
| 884 |
enable_stage2 = gr.Checkbox(label="Stage 2: Lexical Diversification", value=True)
|
| 885 |
enable_stage3 = gr.Checkbox(label="Stage 3: Discourse Enrichment", value=True)
|
| 886 |
enable_stage4 = gr.Checkbox(label="Stage 4: Structural Variation", value=True)
|
| 887 |
-
gr.HTML("<div style='padding:8px; border-left:4px solid #3b82f6; border-radius:4px;'> <b>LLM Review
|
| 888 |
|
| 889 |
with gr.Accordion("Stage 1: Paraphrasing Parameters", open=False):
|
| 890 |
temperature = gr.Slider(0.1, 2.0, value=0.7, step=0.1, label="Temperature")
|
|
|
|
| 782 |
|
| 783 |
# LLM Review
|
| 784 |
result = validateText(original,result)
|
| 785 |
+
stages_applied.append("LLM Review")
|
| 786 |
|
| 787 |
# Calculate similarity
|
| 788 |
similarity = calculate_similarity(input_text, result)
|
|
|
|
| 885 |
enable_stage2 = gr.Checkbox(label="Stage 2: Lexical Diversification", value=True)
|
| 886 |
enable_stage3 = gr.Checkbox(label="Stage 3: Discourse Enrichment", value=True)
|
| 887 |
enable_stage4 = gr.Checkbox(label="Stage 4: Structural Variation", value=True)
|
| 888 |
+
gr.HTML("<div style='padding:8px; border-left:4px solid #3b82f6; border-radius:4px;'> ✅ Final Stage: <b>LLM-powered Text Review</b> applied automatically for quality assurance. </div>")
|
| 889 |
|
| 890 |
with gr.Accordion("Stage 1: Paraphrasing Parameters", open=False):
|
| 891 |
temperature = gr.Slider(0.1, 2.0, value=0.7, step=0.1, label="Temperature")
|