Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,9 +1,29 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from utils import call_openrouter
|
| 3 |
|
| 4 |
-
#
|
|
|
|
|
|
|
| 5 |
custom_css = """
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
.selected { background-color: #2b5797 !important; color: white !important; }
|
| 8 |
.selected span { color: white !important; font-weight: bold !important; }
|
| 9 |
.item.selected, .item:hover { background-color: #2b5797 !important; color: white !important; }
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from utils import call_openrouter
|
| 3 |
|
| 4 |
+
# app.py
|
| 5 |
+
|
| 6 |
+
# 1. CSS com Importação da Alegreya Sans e aplicação nos elementos
|
| 7 |
custom_css = """
|
| 8 |
+
@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');
|
| 9 |
+
|
| 10 |
+
/* Aplica a fonte em toda a interface */
|
| 11 |
+
body, .gradio-container, .gr-button, .gr-input, .gr-form {
|
| 12 |
+
font-family: 'Alegreya Sans', sans-serif !important;
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
/* Ajuste específico para a área de entrada (textarea) e saída */
|
| 16 |
+
textarea, .input-container textarea, .output-class textarea {
|
| 17 |
+
font-family: 'Alegreya Sans', sans-serif !important;
|
| 18 |
+
font-size: 22px !important;
|
| 19 |
+
line-height: 1.6 !important;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
/* Garante que o Markdown (relatório) também use a fonte */
|
| 23 |
+
.prose, .markdown-text {
|
| 24 |
+
font-family: 'Alegreya Sans', sans-serif !important;
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
.selected { background-color: #2b5797 !important; color: white !important; }
|
| 28 |
.selected span { color: white !important; font-weight: bold !important; }
|
| 29 |
.item.selected, .item:hover { background-color: #2b5797 !important; color: white !important; }
|