bonita2026 commited on
Commit
2d1373c
·
verified ·
1 Parent(s): b944ee1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -14
app.py CHANGED
@@ -499,18 +499,15 @@ body, .gradio-container {
499
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
500
  "Helvetica Neue", Arial, sans-serif !important;
501
  }
502
-
503
  /* ── Max-width centred container ── */
504
  .gradio-container {
505
  max-width: 1200px !important;
506
  margin: 0 auto !important;
507
  padding: 0 24px 48px 24px !important;
508
  }
509
-
510
  /* ── Hide Gradio default footer ── */
511
  footer { display: none !important; }
512
  .svelte-1ipelgc { display: none !important; }
513
-
514
  /* ── Disclaimer banner ── */
515
  #disclaimer-banner {
516
  background-color: #FEF3C7 !important;
@@ -524,7 +521,6 @@ footer { display: none !important; }
524
  font-size: 0.82rem !important;
525
  margin: 0 !important;
526
  }
527
-
528
  /* ── Header ── */
529
  #app-header {
530
  padding: 24px 0 16px 0 !important;
@@ -543,7 +539,6 @@ footer { display: none !important; }
543
  color: #6B7280 !important;
544
  margin: 4px 0 0 0 !important;
545
  }
546
-
547
  /* ── Upload area ── */
548
  #upload-area {
549
  border: 2px dashed #D1D5DB !important;
@@ -555,13 +550,11 @@ footer { display: none !important; }
555
  #upload-area:hover {
556
  border-color: #2563EB !important;
557
  }
558
-
559
  /* ── Action buttons row ── */
560
  #action-row {
561
  gap: 12px !important;
562
  margin: 20px 0 !important;
563
  }
564
-
565
  /* Base button style */
566
  #btn-memo, #btn-risk, #btn-discrepancies, #btn-lease {
567
  background-color: #FFFFFF !important;
@@ -585,7 +578,6 @@ footer { display: none !important; }
585
  #btn-discrepancies:active, #btn-lease:active {
586
  background-color: #DBEAFE !important;
587
  }
588
-
589
  /* ── Results panel ── */
590
  #results-panel {
591
  background: #FFFFFF !important;
@@ -604,7 +596,6 @@ footer { display: none !important; }
604
  color: #111827 !important;
605
  margin-top: 1.2em !important;
606
  }
607
-
608
  /* ── Download area ── */
609
  #download-area {
610
  margin-top: 16px !important;
@@ -613,7 +604,6 @@ footer { display: none !important; }
613
  border: 1.5px solid #86EFAC !important;
614
  border-radius: 10px !important;
615
  }
616
-
617
  /* ── Footer ── */
618
  #app-footer {
619
  text-align: center !important;
@@ -623,7 +613,6 @@ footer { display: none !important; }
623
  border-top: 1px solid #F3F4F6 !important;
624
  margin-top: 32px !important;
625
  }
626
-
627
  /* ── Missing prompt warning ── */
628
  #missing-prompt-warning {
629
  background-color: #FEF2F2 !important;
@@ -654,7 +643,7 @@ def build_missing_prompt_warning() -> str:
654
  )
655
 
656
 
657
- with gr.Blocks(css=CUSTOM_CSS, title="InvestVerify") as demo:
658
 
659
  # ── State ──────────────────────────────────────────────────────────────
660
  discrepancy_state = gr.State("") # holds full discrepancy response text
@@ -850,5 +839,4 @@ with gr.Blocks(css=CUSTOM_CSS, title="InvestVerify") as demo:
850
  # ---------------------------------------------------------------------------
851
  # Launch
852
  # ---------------------------------------------------------------------------
853
- if __name__ == "__main__":
854
- demo.launch()
 
499
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
500
  "Helvetica Neue", Arial, sans-serif !important;
501
  }
 
502
  /* ── Max-width centred container ── */
503
  .gradio-container {
504
  max-width: 1200px !important;
505
  margin: 0 auto !important;
506
  padding: 0 24px 48px 24px !important;
507
  }
 
508
  /* ── Hide Gradio default footer ── */
509
  footer { display: none !important; }
510
  .svelte-1ipelgc { display: none !important; }
 
511
  /* ── Disclaimer banner ── */
512
  #disclaimer-banner {
513
  background-color: #FEF3C7 !important;
 
521
  font-size: 0.82rem !important;
522
  margin: 0 !important;
523
  }
 
524
  /* ── Header ── */
525
  #app-header {
526
  padding: 24px 0 16px 0 !important;
 
539
  color: #6B7280 !important;
540
  margin: 4px 0 0 0 !important;
541
  }
 
542
  /* ── Upload area ── */
543
  #upload-area {
544
  border: 2px dashed #D1D5DB !important;
 
550
  #upload-area:hover {
551
  border-color: #2563EB !important;
552
  }
 
553
  /* ── Action buttons row ── */
554
  #action-row {
555
  gap: 12px !important;
556
  margin: 20px 0 !important;
557
  }
 
558
  /* Base button style */
559
  #btn-memo, #btn-risk, #btn-discrepancies, #btn-lease {
560
  background-color: #FFFFFF !important;
 
578
  #btn-discrepancies:active, #btn-lease:active {
579
  background-color: #DBEAFE !important;
580
  }
 
581
  /* ── Results panel ── */
582
  #results-panel {
583
  background: #FFFFFF !important;
 
596
  color: #111827 !important;
597
  margin-top: 1.2em !important;
598
  }
 
599
  /* ── Download area ── */
600
  #download-area {
601
  margin-top: 16px !important;
 
604
  border: 1.5px solid #86EFAC !important;
605
  border-radius: 10px !important;
606
  }
 
607
  /* ── Footer ── */
608
  #app-footer {
609
  text-align: center !important;
 
613
  border-top: 1px solid #F3F4F6 !important;
614
  margin-top: 32px !important;
615
  }
 
616
  /* ── Missing prompt warning ── */
617
  #missing-prompt-warning {
618
  background-color: #FEF2F2 !important;
 
643
  )
644
 
645
 
646
+ with gr.Blocks(title="InvestVerify") as demo:
647
 
648
  # ── State ──────────────────────────────────────────────────────────────
649
  discrepancy_state = gr.State("") # holds full discrepancy response text
 
839
  # ---------------------------------------------------------------------------
840
  # Launch
841
  # ---------------------------------------------------------------------------
842
+ demo.launch(ssr_mode=False, css=CUSTOM_CSS)