onkar-waghmode commited on
Commit
b55adfa
Β·
1 Parent(s): 99095ba
Files changed (1) hide show
  1. app.py +15 -14
app.py CHANGED
@@ -502,6 +502,21 @@ with gr.Blocks(title="Text Paraphraser & Expander", theme=gr.themes.Soft()) as d
502
  gr.Markdown("---")
503
  gr.Markdown("## 🧩 Visual Comparison - Original vs Paraphrased Text")
504
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
505
  with gr.Row():
506
  with gr.Column(scale=1):
507
  gr.Markdown("### πŸ“„ Original Text (with changes highlighted)")
@@ -521,20 +536,6 @@ with gr.Blocks(title="Text Paraphraser & Expander", theme=gr.themes.Soft()) as d
521
 
522
  change_stats = gr.HTML(label="Change Statistics",elem_id="change_stats")
523
 
524
- gr.HTML("""
525
- <style>
526
- #highlighted_original > div {
527
- overflow-y: auto;
528
- max-height: 400px;
529
- }
530
- #highlighted_original > div:empty {
531
- overflow: hidden;
532
- }
533
- #change_stats > div:empty {
534
- overflow: hidden;
535
- }
536
- </style>
537
- """)
538
 
539
  # Event handlers
540
  mode.change(
 
502
  gr.Markdown("---")
503
  gr.Markdown("## 🧩 Visual Comparison - Original vs Paraphrased Text")
504
 
505
+ gr.HTML("""
506
+ <style>
507
+ #highlighted_original > div {
508
+ overflow-y: auto;
509
+ max-height: 400px;
510
+ }
511
+ #highlighted_original > div:empty {
512
+ overflow: hidden;
513
+ }
514
+ #change_stats > div:empty {
515
+ overflow: hidden;
516
+ }
517
+ </style>
518
+ """)
519
+
520
  with gr.Row():
521
  with gr.Column(scale=1):
522
  gr.Markdown("### πŸ“„ Original Text (with changes highlighted)")
 
536
 
537
  change_stats = gr.HTML(label="Change Statistics",elem_id="change_stats")
538
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
539
 
540
  # Event handlers
541
  mode.change(