Benedikt Droste Claude Opus 4.5 commited on
Commit
44a6233
·
1 Parent(s): a136b37

Fix UI: reduce padding, fix section titles, rename to sui-1-24b-fp8

Browse files

- Reduce header and panel padding for less wasted space
- Fix section titles being truncated (overflow: visible)
- Rename title from "sui-1 Summarizer" to "sui-1-24b-fp8"
- Shorter subtitle

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Files changed (1) hide show
  1. app.py +18 -15
app.py CHANGED
@@ -473,11 +473,11 @@ CSS = """
473
  /* Header styling */
474
  .main-header {
475
  text-align: center;
476
- padding: 2.5rem 2rem;
477
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
478
  backdrop-filter: blur(10px);
479
- border-radius: 1.5rem;
480
- margin-bottom: 2rem;
481
  border: 1px solid rgba(255, 255, 255, 0.9);
482
  box-shadow:
483
  0 4px 6px -1px rgba(0, 0, 0, 0.05),
@@ -507,46 +507,49 @@ CSS = """
507
  .input-panel {
508
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.8) 100%) !important;
509
  backdrop-filter: blur(10px);
510
- border-radius: 1.25rem !important;
511
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
512
  box-shadow:
513
  0 4px 6px -1px rgba(0, 0, 0, 0.05),
514
  0 10px 15px -3px rgba(0, 0, 0, 0.05) !important;
515
- padding: 1.5rem !important;
516
  }
517
 
518
  .output-panel {
519
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 100%) !important;
520
  backdrop-filter: blur(10px);
521
- border-radius: 1.25rem !important;
522
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
523
  box-shadow:
524
  0 4px 6px -1px rgba(0, 0, 0, 0.05),
525
  0 10px 15px -3px rgba(0, 0, 0, 0.08),
526
  0 20px 25px -5px rgba(124, 58, 237, 0.08) !important;
527
- padding: 1.75rem !important;
528
- min-height: 400px;
529
  }
530
 
531
  /* Section headers */
532
  .section-title {
533
- font-size: 0.875rem !important;
534
  font-weight: 600 !important;
535
  text-transform: uppercase !important;
536
  letter-spacing: 0.05em !important;
537
  color: #7c3aed !important;
538
- margin-bottom: 1rem !important;
 
539
  padding-bottom: 0.5rem !important;
540
  border-bottom: 2px solid rgba(124, 58, 237, 0.1) !important;
 
541
  }
542
 
543
  .section-title h3 {
544
  color: #7c3aed !important;
545
- font-size: 0.875rem !important;
546
  font-weight: 600 !important;
547
  text-transform: uppercase !important;
548
  letter-spacing: 0.05em !important;
549
  margin: 0 !important;
 
550
  }
551
 
552
  /* Summary output */
@@ -781,13 +784,13 @@ footer {
781
 
782
  def create_app() -> gr.Blocks:
783
  """Create the Gradio application."""
784
- with gr.Blocks(title="sui-1 Summarizer", theme=THEME, css=CSS) as app:
785
-
786
  # Header
787
  gr.HTML("""
788
  <div class="main-header">
789
- <h1>sui-1 Summarizer</h1>
790
- <p>Generate grounded summaries with verifiable source citations</p>
791
  </div>
792
  """)
793
 
 
473
  /* Header styling */
474
  .main-header {
475
  text-align: center;
476
+ padding: 1.5rem 1.25rem;
477
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
478
  backdrop-filter: blur(10px);
479
+ border-radius: 1rem;
480
+ margin-bottom: 1.25rem;
481
  border: 1px solid rgba(255, 255, 255, 0.9);
482
  box-shadow:
483
  0 4px 6px -1px rgba(0, 0, 0, 0.05),
 
507
  .input-panel {
508
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.8) 100%) !important;
509
  backdrop-filter: blur(10px);
510
+ border-radius: 1rem !important;
511
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
512
  box-shadow:
513
  0 4px 6px -1px rgba(0, 0, 0, 0.05),
514
  0 10px 15px -3px rgba(0, 0, 0, 0.05) !important;
515
+ padding: 1rem !important;
516
  }
517
 
518
  .output-panel {
519
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 100%) !important;
520
  backdrop-filter: blur(10px);
521
+ border-radius: 1rem !important;
522
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
523
  box-shadow:
524
  0 4px 6px -1px rgba(0, 0, 0, 0.05),
525
  0 10px 15px -3px rgba(0, 0, 0, 0.08),
526
  0 20px 25px -5px rgba(124, 58, 237, 0.08) !important;
527
+ padding: 1.25rem !important;
528
+ min-height: 350px;
529
  }
530
 
531
  /* Section headers */
532
  .section-title {
533
+ font-size: 0.8rem !important;
534
  font-weight: 600 !important;
535
  text-transform: uppercase !important;
536
  letter-spacing: 0.05em !important;
537
  color: #7c3aed !important;
538
+ margin-bottom: 0.75rem !important;
539
+ margin-top: 0 !important;
540
  padding-bottom: 0.5rem !important;
541
  border-bottom: 2px solid rgba(124, 58, 237, 0.1) !important;
542
+ overflow: visible !important;
543
  }
544
 
545
  .section-title h3 {
546
  color: #7c3aed !important;
547
+ font-size: 0.8rem !important;
548
  font-weight: 600 !important;
549
  text-transform: uppercase !important;
550
  letter-spacing: 0.05em !important;
551
  margin: 0 !important;
552
+ overflow: visible !important;
553
  }
554
 
555
  /* Summary output */
 
784
 
785
  def create_app() -> gr.Blocks:
786
  """Create the Gradio application."""
787
+ with gr.Blocks(title="sui-1-24b-fp8", theme=THEME, css=CSS) as app:
788
+
789
  # Header
790
  gr.HTML("""
791
  <div class="main-header">
792
+ <h1>sui-1-24b-fp8</h1>
793
+ <p>Grounded summaries with verifiable source citations</p>
794
  </div>
795
  """)
796