Spaces:
Running
Running
Commit
Β·
ba69aa1
1
Parent(s):
20f3fd0
changes
Browse files
app.py
CHANGED
|
@@ -418,7 +418,7 @@ class AdvancedAIHumanizer:
|
|
| 418 |
return f"Error processing text: {str(e)}"
|
| 419 |
|
| 420 |
def create_interface():
|
| 421 |
-
"""Create the advanced Gradio interface"""
|
| 422 |
humanizer = AdvancedAIHumanizer()
|
| 423 |
|
| 424 |
def process_text(input_text, intensity):
|
|
@@ -431,11 +431,57 @@ def create_interface():
|
|
| 431 |
except Exception as e:
|
| 432 |
return f"Error: {str(e)}", "Processing error"
|
| 433 |
|
| 434 |
-
#
|
| 435 |
-
|
| 436 |
-
|
| 437 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 438 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 439 |
.main-header {
|
| 440 |
text-align: center;
|
| 441 |
background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
|
|
@@ -445,9 +491,32 @@ def create_interface():
|
|
| 445 |
font-weight: bold;
|
| 446 |
margin-bottom: 20px;
|
| 447 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 448 |
"""
|
| 449 |
|
| 450 |
-
with gr.Blocks(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 451 |
gr.HTML("""
|
| 452 |
<div class="main-header">
|
| 453 |
π€β‘οΈπ€ ULTRA AI HUMANIZER
|
|
@@ -462,12 +531,14 @@ def create_interface():
|
|
| 462 |
""")
|
| 463 |
|
| 464 |
with gr.Row():
|
| 465 |
-
with gr.Column(scale=1):
|
| 466 |
input_text = gr.Textbox(
|
| 467 |
label="π€ AI-Generated Text Input",
|
| 468 |
-
lines=
|
| 469 |
-
placeholder="Paste your AI-generated content here for ultra-humanization...\n\nThe more text you provide, the better the humanization results
|
| 470 |
-
info="π‘ Tip: Longer texts (200+ words) get better humanization results"
|
|
|
|
|
|
|
| 471 |
)
|
| 472 |
|
| 473 |
intensity = gr.Radio(
|
|
@@ -485,37 +556,60 @@ def create_interface():
|
|
| 485 |
"π HUMANIZE TO 0% AI DETECTION",
|
| 486 |
variant="primary",
|
| 487 |
size="lg",
|
| 488 |
-
|
| 489 |
)
|
| 490 |
|
| 491 |
-
with gr.Column(scale=1):
|
| 492 |
output_text = gr.Textbox(
|
| 493 |
label="π€ Humanized Text Output (0% AI Detection)",
|
| 494 |
-
lines=
|
| 495 |
show_copy_button=True,
|
| 496 |
-
info="β
Copy this text - it should pass all AI detectors"
|
|
|
|
| 497 |
)
|
| 498 |
|
| 499 |
readability = gr.Textbox(
|
| 500 |
label="π Readability Analysis",
|
| 501 |
-
lines=
|
| 502 |
info="Lower grade levels are more conversational and human-like"
|
| 503 |
)
|
| 504 |
|
| 505 |
gr.HTML("""
|
| 506 |
-
<div
|
| 507 |
<h3>π― How This Achieves 0% AI Detection:</h3>
|
| 508 |
-
<
|
| 509 |
-
<
|
| 510 |
-
|
| 511 |
-
|
| 512 |
-
|
| 513 |
-
<
|
| 514 |
-
|
| 515 |
-
|
| 516 |
-
|
| 517 |
-
|
| 518 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 519 |
</div>
|
| 520 |
""")
|
| 521 |
|
|
|
|
| 418 |
return f"Error processing text: {str(e)}"
|
| 419 |
|
| 420 |
def create_interface():
|
| 421 |
+
"""Create the advanced Gradio interface with full-width layout"""
|
| 422 |
humanizer = AdvancedAIHumanizer()
|
| 423 |
|
| 424 |
def process_text(input_text, intensity):
|
|
|
|
| 431 |
except Exception as e:
|
| 432 |
return f"Error: {str(e)}", "Processing error"
|
| 433 |
|
| 434 |
+
# Full-width CSS for maximum screen utilization
|
| 435 |
+
full_width_css = """
|
| 436 |
+
/* Override max width of gradio container and cards to full width */
|
| 437 |
+
.gradio-container, .gradio-container > div {
|
| 438 |
+
max-width: 100% !important;
|
| 439 |
+
width: 100% !important;
|
| 440 |
+
padding-left: 10px !important;
|
| 441 |
+
padding-right: 10px !important;
|
| 442 |
+
margin: 0 !important;
|
| 443 |
}
|
| 444 |
+
|
| 445 |
+
/* Make all cards take full width inside their container */
|
| 446 |
+
.card, .gradio-card {
|
| 447 |
+
max-width: 100% !important;
|
| 448 |
+
width: 100% !important;
|
| 449 |
+
margin: 5px 0 !important;
|
| 450 |
+
}
|
| 451 |
+
|
| 452 |
+
/* Remove margin and padding from rows and columns to maximize width */
|
| 453 |
+
.gradio-row, .gradio-column {
|
| 454 |
+
margin: 0 !important;
|
| 455 |
+
padding: 5px !important;
|
| 456 |
+
gap: 10px !important;
|
| 457 |
+
}
|
| 458 |
+
|
| 459 |
+
/* Full width for textboxes and components */
|
| 460 |
+
.gradio-textbox, .gradio-button, .gradio-radio {
|
| 461 |
+
width: 100% !important;
|
| 462 |
+
max-width: 100% !important;
|
| 463 |
+
}
|
| 464 |
+
|
| 465 |
+
/* Responsive design for different screen sizes */
|
| 466 |
+
@media (min-width: 1536px) {
|
| 467 |
+
.gradio-container {
|
| 468 |
+
max-width: 100% !important;
|
| 469 |
+
}
|
| 470 |
+
}
|
| 471 |
+
|
| 472 |
+
@media (min-width: 1280px) {
|
| 473 |
+
.gradio-container {
|
| 474 |
+
max-width: 100% !important;
|
| 475 |
+
}
|
| 476 |
+
}
|
| 477 |
+
|
| 478 |
+
@media (min-width: 1024px) {
|
| 479 |
+
.gradio-container {
|
| 480 |
+
max-width: 100% !important;
|
| 481 |
+
}
|
| 482 |
+
}
|
| 483 |
+
|
| 484 |
+
/* Custom styling for better visual appeal */
|
| 485 |
.main-header {
|
| 486 |
text-align: center;
|
| 487 |
background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
|
|
|
|
| 491 |
font-weight: bold;
|
| 492 |
margin-bottom: 20px;
|
| 493 |
}
|
| 494 |
+
|
| 495 |
+
.feature-box {
|
| 496 |
+
background: #f8f9fa;
|
| 497 |
+
border-radius: 10px;
|
| 498 |
+
padding: 20px;
|
| 499 |
+
margin: 10px 0;
|
| 500 |
+
border-left: 4px solid #4ECDC4;
|
| 501 |
+
}
|
| 502 |
+
|
| 503 |
+
.stats-box {
|
| 504 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 505 |
+
color: white;
|
| 506 |
+
border-radius: 10px;
|
| 507 |
+
padding: 15px;
|
| 508 |
+
margin: 10px 0;
|
| 509 |
+
text-align: center;
|
| 510 |
+
}
|
| 511 |
"""
|
| 512 |
|
| 513 |
+
with gr.Blocks(
|
| 514 |
+
title="Ultra AI Humanizer - 0% Detection",
|
| 515 |
+
theme=gr.themes.Soft(),
|
| 516 |
+
css=full_width_css,
|
| 517 |
+
fill_width=True
|
| 518 |
+
) as interface:
|
| 519 |
+
|
| 520 |
gr.HTML("""
|
| 521 |
<div class="main-header">
|
| 522 |
π€β‘οΈπ€ ULTRA AI HUMANIZER
|
|
|
|
| 531 |
""")
|
| 532 |
|
| 533 |
with gr.Row():
|
| 534 |
+
with gr.Column(scale=1, min_width=400):
|
| 535 |
input_text = gr.Textbox(
|
| 536 |
label="π€ AI-Generated Text Input",
|
| 537 |
+
lines=15,
|
| 538 |
+
placeholder="Paste your AI-generated content here for ultra-humanization...\n\nThe more text you provide, the better the humanization results!\n\nTip: Longer texts (200+ words) get significantly better humanization results.",
|
| 539 |
+
info="π‘ Tip: Longer texts (200+ words) get better humanization results",
|
| 540 |
+
max_lines=20,
|
| 541 |
+
show_copy_button=True
|
| 542 |
)
|
| 543 |
|
| 544 |
intensity = gr.Radio(
|
|
|
|
| 556 |
"π HUMANIZE TO 0% AI DETECTION",
|
| 557 |
variant="primary",
|
| 558 |
size="lg",
|
| 559 |
+
scale=1
|
| 560 |
)
|
| 561 |
|
| 562 |
+
with gr.Column(scale=1, min_width=400):
|
| 563 |
output_text = gr.Textbox(
|
| 564 |
label="π€ Humanized Text Output (0% AI Detection)",
|
| 565 |
+
lines=15,
|
| 566 |
show_copy_button=True,
|
| 567 |
+
info="β
Copy this text - it should pass all AI detectors",
|
| 568 |
+
max_lines=20
|
| 569 |
)
|
| 570 |
|
| 571 |
readability = gr.Textbox(
|
| 572 |
label="π Readability Analysis",
|
| 573 |
+
lines=4,
|
| 574 |
info="Lower grade levels are more conversational and human-like"
|
| 575 |
)
|
| 576 |
|
| 577 |
gr.HTML("""
|
| 578 |
+
<div class="feature-box">
|
| 579 |
<h3>π― How This Achieves 0% AI Detection:</h3>
|
| 580 |
+
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; margin: 15px 0;">
|
| 581 |
+
<div>
|
| 582 |
+
<strong>π₯ Aggressive Phrase Elimination:</strong><br>
|
| 583 |
+
Removes ALL AI-flagged terms and patterns
|
| 584 |
+
</div>
|
| 585 |
+
<div>
|
| 586 |
+
<strong>π¬ Personality Injection:</strong><br>
|
| 587 |
+
Adds personal voice, opinions, and conversational style
|
| 588 |
+
</div>
|
| 589 |
+
<div>
|
| 590 |
+
<strong>π Multi-Pass Processing:</strong><br>
|
| 591 |
+
Applies humanization techniques multiple times
|
| 592 |
+
</div>
|
| 593 |
+
<div>
|
| 594 |
+
<strong>π Human Imperfections:</strong><br>
|
| 595 |
+
Adds natural hesitations, self-corrections, and casual speech
|
| 596 |
+
</div>
|
| 597 |
+
<div>
|
| 598 |
+
<strong>π Sentence Restructuring:</strong><br>
|
| 599 |
+
Completely rebuilds sentence patterns
|
| 600 |
+
</div>
|
| 601 |
+
<div>
|
| 602 |
+
<strong>π‘ Specific Examples:</strong><br>
|
| 603 |
+
Injects unique examples and personal anecdotes
|
| 604 |
+
</div>
|
| 605 |
+
</div>
|
| 606 |
+
</div>
|
| 607 |
+
""")
|
| 608 |
+
|
| 609 |
+
gr.HTML("""
|
| 610 |
+
<div class="stats-box">
|
| 611 |
+
<h3>β¨ Test your results with Originality.ai, GPTZero, and other AI detectors!</h3>
|
| 612 |
+
<p>This tool is specifically designed to pass the most sophisticated AI detection systems</p>
|
| 613 |
</div>
|
| 614 |
""")
|
| 615 |
|