Alex Amari commited on
Commit
30b465e
·
1 Parent(s): 389f234

Restyle app to match OHA branding

Browse files
Files changed (2) hide show
  1. __pycache__/app.cpython-312.pyc +0 -0
  2. app.py +23 -3
__pycache__/app.cpython-312.pyc CHANGED
Binary files a/__pycache__/app.cpython-312.pyc and b/__pycache__/app.cpython-312.pyc differ
 
app.py CHANGED
@@ -960,6 +960,10 @@ blockquote {
960
  border: 1px solid #E0E0E0 !important;
961
  border-radius: 4px !important;
962
  }
 
 
 
 
963
 
964
  /* ---------- MAP ---------- */
965
  .map-embed iframe {
@@ -1127,8 +1131,6 @@ def create_interface():
1127
  chatbot = gr.Chatbot(
1128
  label="Conversation",
1129
  height=350,
1130
- show_share_button=False,
1131
- show_copy_button=True,
1132
  )
1133
 
1134
  # Suggested prompt buttons (pill-shaped via CSS)
@@ -1475,7 +1477,25 @@ def create_interface():
1475
  demo = create_interface()
1476
 
1477
  if __name__ == "__main__":
1478
- demo.launch(auth=("oha", DEMO_PASSWORD))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1479
 
1480
 
1481
  # === TESTS (pytest-compatible) ===
 
960
  border: 1px solid #E0E0E0 !important;
961
  border-radius: 4px !important;
962
  }
963
+ /* Hide the share button in chatbot (removed in Gradio 6 API) */
964
+ .chatbot button[aria-label="Share"],
965
+ .chatbot .share-button,
966
+ .chatbot svg.share-icon { display: none !important; }
967
 
968
  /* ---------- MAP ---------- */
969
  .map-embed iframe {
 
1131
  chatbot = gr.Chatbot(
1132
  label="Conversation",
1133
  height=350,
 
 
1134
  )
1135
 
1136
  # Suggested prompt buttons (pill-shaped via CSS)
 
1477
  demo = create_interface()
1478
 
1479
  if __name__ == "__main__":
1480
+ demo.launch(
1481
+ auth=("oha", DEMO_PASSWORD),
1482
+ theme=gr.themes.Default(
1483
+ primary_hue=gr.themes.Color(
1484
+ c50="#F0F4FA", c100="#D6E2F5", c200="#AECAEF",
1485
+ c300="#7BAEE6", c400="#4A8FDB", c500="#0046AD",
1486
+ c600="#003D96", c700="#003478", c800="#002B63",
1487
+ c900="#001B3A", c950="#001028",
1488
+ ),
1489
+ neutral_hue=gr.themes.Color(
1490
+ c50="#F5F5F5", c100="#E0E0E0", c200="#CED4DA",
1491
+ c300="#ADB5BD", c400="#6C757D", c500="#495057",
1492
+ c600="#343A40", c700="#212529", c800="#1A1E21",
1493
+ c900="#111315", c950="#0A0C0D",
1494
+ ),
1495
+ font=["-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Helvetica Neue", "Arial", "sans-serif"],
1496
+ ),
1497
+ css=custom_css,
1498
+ )
1499
 
1500
 
1501
  # === TESTS (pytest-compatible) ===