TejAndrewsACC commited on
Commit
7f7cc97
·
verified ·
1 Parent(s): 1c9d4e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -1
app.py CHANGED
@@ -3647,6 +3647,22 @@ def respond(message, history, max_tokens, temperature, top_p):
3647
 
3648
 
3649
  css = """
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3650
  #chat-interface {
3651
  animation: pulse 1.5s infinite, ripple 2s infinite, glass 3s infinite alternate;
3652
  }
@@ -3684,7 +3700,6 @@ css = """
3684
 
3685
  body {
3686
  background-color: #001f2d;
3687
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
3688
  color: #fff;
3689
  }
3690
 
@@ -3763,6 +3778,7 @@ body {
3763
  }
3764
  """
3765
 
 
3766
  demo = gr.ChatInterface(
3767
  fn=respond,
3768
  type="messages",
 
3647
 
3648
 
3649
  css = """
3650
+ @import url('https://fonts.googleapis.com/css2?family=Segoe+UI&display=swap');
3651
+
3652
+ /* Apply font to all elements */
3653
+ * {
3654
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
3655
+ }
3656
+
3657
+ /* Ensure font is applied to the Chatbot and other components */
3658
+ .gradio-chatbot {
3659
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
3660
+ }
3661
+
3662
+ .gradio-chatbot .message {
3663
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
3664
+ }
3665
+
3666
  #chat-interface {
3667
  animation: pulse 1.5s infinite, ripple 2s infinite, glass 3s infinite alternate;
3668
  }
 
3700
 
3701
  body {
3702
  background-color: #001f2d;
 
3703
  color: #fff;
3704
  }
3705
 
 
3778
  }
3779
  """
3780
 
3781
+
3782
  demo = gr.ChatInterface(
3783
  fn=respond,
3784
  type="messages",