Update app.py
Browse files
app.py
CHANGED
|
@@ -144,17 +144,15 @@ def chat_with_ai(message, history, role, audio_file=None):
|
|
| 144 |
messages_for_gradio.append({"role": "assistant", "content": bot_msg})
|
| 145 |
return format_history_for_gradio(history), history
|
| 146 |
|
| 147 |
-
|
| 148 |
def create_chatbot():
|
| 149 |
with gr.Blocks(
|
| 150 |
theme=gr.themes.Soft(),
|
| 151 |
css="""
|
| 152 |
-
@import url('https://fonts.googleapis.com/css2?family=
|
| 153 |
|
| 154 |
body {
|
| 155 |
background-color: #e6ccff !important;
|
| 156 |
-
font-family: '
|
| 157 |
-
text-transform: uppercase !important;
|
| 158 |
color: #b266ff !important;
|
| 159 |
font-size: 11px !important;
|
| 160 |
}
|
|
@@ -167,8 +165,7 @@ def create_chatbot():
|
|
| 167 |
textarea, input, .gr-textbox, .gr-dropdown, button, .gr-button {
|
| 168 |
background-color: #f9f0ff !important;
|
| 169 |
color: #b266ff !important;
|
| 170 |
-
font-family: '
|
| 171 |
-
text-transform: uppercase !important;
|
| 172 |
border: 1px solid #cc99ff !important;
|
| 173 |
font-size: 11px !important;
|
| 174 |
}
|
|
@@ -178,13 +175,13 @@ def create_chatbot():
|
|
| 178 |
}
|
| 179 |
|
| 180 |
.message, label, h1, h2, h3, h4, h5, h6, p, span {
|
| 181 |
-
font-family: '
|
| 182 |
-
text-transform: uppercase !important;
|
| 183 |
font-size: 11px !important;
|
| 184 |
color: #b266ff !important;
|
| 185 |
}
|
| 186 |
"""
|
| 187 |
) as demo:
|
|
|
|
| 188 |
chatbot = gr.Chatbot(type='messages')
|
| 189 |
state = gr.State([])
|
| 190 |
|
|
|
|
| 144 |
messages_for_gradio.append({"role": "assistant", "content": bot_msg})
|
| 145 |
return format_history_for_gradio(history), history
|
| 146 |
|
|
|
|
| 147 |
def create_chatbot():
|
| 148 |
with gr.Blocks(
|
| 149 |
theme=gr.themes.Soft(),
|
| 150 |
css="""
|
| 151 |
+
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;700&display=swap');
|
| 152 |
|
| 153 |
body {
|
| 154 |
background-color: #e6ccff !important;
|
| 155 |
+
font-family: 'Rajdhani', sans-serif !important;
|
|
|
|
| 156 |
color: #b266ff !important;
|
| 157 |
font-size: 11px !important;
|
| 158 |
}
|
|
|
|
| 165 |
textarea, input, .gr-textbox, .gr-dropdown, button, .gr-button {
|
| 166 |
background-color: #f9f0ff !important;
|
| 167 |
color: #b266ff !important;
|
| 168 |
+
font-family: 'Rajdhani', sans-serif !important;
|
|
|
|
| 169 |
border: 1px solid #cc99ff !important;
|
| 170 |
font-size: 11px !important;
|
| 171 |
}
|
|
|
|
| 175 |
}
|
| 176 |
|
| 177 |
.message, label, h1, h2, h3, h4, h5, h6, p, span {
|
| 178 |
+
font-family: 'Rajdhani', sans-serif !important;
|
|
|
|
| 179 |
font-size: 11px !important;
|
| 180 |
color: #b266ff !important;
|
| 181 |
}
|
| 182 |
"""
|
| 183 |
) as demo:
|
| 184 |
+
|
| 185 |
chatbot = gr.Chatbot(type='messages')
|
| 186 |
state = gr.State([])
|
| 187 |
|