Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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(
|