Reality123b commited on
Commit
98f0993
·
verified ·
1 Parent(s): a184be7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -1
app.py CHANGED
@@ -101,7 +101,26 @@ class XylariaChat:
101
  if len(self.conversation_history) > 10:
102
  self.conversation_history = self.conversation_history[-10:]
103
 
104
- with gr.Blocks(theme='soft') as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
  # Chat interface with improved styling
106
  with gr.Column():
107
  chatbot = gr.Chatbot(
 
101
  if len(self.conversation_history) > 10:
102
  self.conversation_history = self.conversation_history[-10:]
103
 
104
+ # Custom CSS for Inter font
105
+ custom_css = """
106
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
107
+
108
+ body, .gradio-container {
109
+ font-family: 'Inter', sans-serif !important;
110
+ }
111
+
112
+ .chatbot-container .message {
113
+ font-family: 'Inter', sans-serif !important;
114
+ }
115
+
116
+ .gradio-container input,
117
+ .gradio-container textarea,
118
+ .gradio-container button {
119
+ font-family: 'Inter', sans-serif !important;
120
+ }
121
+ """
122
+
123
+ with gr.Blocks(theme='soft', css=custom_css) as demo:
124
  # Chat interface with improved styling
125
  with gr.Column():
126
  chatbot = gr.Chatbot(