Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -156,18 +156,18 @@ def get_administradoras_options():
|
|
| 156 |
|
| 157 |
# --- Interface Gradio ---
|
| 158 |
with gr.Blocks(title="Sistema de Busca de Cons贸rcio de Autom贸veis") as demo:
|
| 159 |
-
|
| 160 |
<link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
|
| 161 |
<style>
|
| 162 |
* {
|
| 163 |
font-family: 'Poppins', sans-serif !important;
|
| 164 |
}
|
| 165 |
-
|
| 166 |
body {
|
| 167 |
background-color: #ff8f00 !important;
|
| 168 |
color: black !important;
|
| 169 |
}
|
| 170 |
-
|
| 171 |
/* Inputs Num茅ricos: Cr茅dito, Entrada, Parcela */
|
| 172 |
input[type="number"] {
|
| 173 |
background-color: white !important;
|
|
@@ -177,7 +177,7 @@ with gr.Blocks(title="Sistema de Busca de Cons贸rcio de Autom贸veis") as demo:
|
|
| 177 |
padding: 10px !important;
|
| 178 |
font-weight: 500;
|
| 179 |
}
|
| 180 |
-
|
| 181 |
/* Inputs de texto e 谩reas de texto (como a sa铆da e c贸digo) */
|
| 182 |
input[type="text"], textarea {
|
| 183 |
background-color: white !important;
|
|
@@ -186,25 +186,25 @@ with gr.Blocks(title="Sistema de Busca de Cons贸rcio de Autom贸veis") as demo:
|
|
| 186 |
color: black !important;
|
| 187 |
padding: 10px !important;
|
| 188 |
}
|
| 189 |
-
|
| 190 |
input::placeholder, textarea::placeholder {
|
| 191 |
color: #333 !important;
|
| 192 |
opacity: 0.7;
|
| 193 |
}
|
| 194 |
-
|
| 195 |
.gr-checkbox label {
|
| 196 |
display: flex;
|
| 197 |
align-items: center;
|
| 198 |
gap: 8px;
|
| 199 |
font-weight: 600;
|
| 200 |
}
|
| 201 |
-
|
| 202 |
input[type="checkbox"] {
|
| 203 |
accent-color: black !important;
|
| 204 |
width: 18px;
|
| 205 |
height: 18px;
|
| 206 |
}
|
| 207 |
-
|
| 208 |
.gr-button {
|
| 209 |
font-weight: bold;
|
| 210 |
border-radius: 10px !important;
|
|
@@ -212,12 +212,12 @@ with gr.Blocks(title="Sistema de Busca de Cons贸rcio de Autom贸veis") as demo:
|
|
| 212 |
color: black !important;
|
| 213 |
border: 2px solid black !important;
|
| 214 |
}
|
| 215 |
-
|
| 216 |
.gr-button:hover {
|
| 217 |
background-color: #fff3e0 !important;
|
| 218 |
color: black !important;
|
| 219 |
}
|
| 220 |
-
|
| 221 |
label {
|
| 222 |
font-weight: 600 !important;
|
| 223 |
}
|
|
@@ -254,5 +254,3 @@ with gr.Blocks(title="Sistema de Busca de Cons贸rcio de Autom贸veis") as demo:
|
|
| 254 |
gr.Markdown("---")
|
| 255 |
gr.Markdown("Ferramenta desenvolvida para otimizar a busca por cons贸rcios de autom贸veis.")
|
| 256 |
|
| 257 |
-
if __name__ == "__main__":
|
| 258 |
-
demo.launch() # Voc锚 n茫o precisa disso no Colab, mas sim no arquivo que voc锚 far谩 o deploy
|
|
|
|
| 156 |
|
| 157 |
# --- Interface Gradio ---
|
| 158 |
with gr.Blocks(title="Sistema de Busca de Cons贸rcio de Autom贸veis") as demo:
|
| 159 |
+
gr.HTML("""
|
| 160 |
<link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
|
| 161 |
<style>
|
| 162 |
* {
|
| 163 |
font-family: 'Poppins', sans-serif !important;
|
| 164 |
}
|
| 165 |
+
|
| 166 |
body {
|
| 167 |
background-color: #ff8f00 !important;
|
| 168 |
color: black !important;
|
| 169 |
}
|
| 170 |
+
|
| 171 |
/* Inputs Num茅ricos: Cr茅dito, Entrada, Parcela */
|
| 172 |
input[type="number"] {
|
| 173 |
background-color: white !important;
|
|
|
|
| 177 |
padding: 10px !important;
|
| 178 |
font-weight: 500;
|
| 179 |
}
|
| 180 |
+
|
| 181 |
/* Inputs de texto e 谩reas de texto (como a sa铆da e c贸digo) */
|
| 182 |
input[type="text"], textarea {
|
| 183 |
background-color: white !important;
|
|
|
|
| 186 |
color: black !important;
|
| 187 |
padding: 10px !important;
|
| 188 |
}
|
| 189 |
+
|
| 190 |
input::placeholder, textarea::placeholder {
|
| 191 |
color: #333 !important;
|
| 192 |
opacity: 0.7;
|
| 193 |
}
|
| 194 |
+
|
| 195 |
.gr-checkbox label {
|
| 196 |
display: flex;
|
| 197 |
align-items: center;
|
| 198 |
gap: 8px;
|
| 199 |
font-weight: 600;
|
| 200 |
}
|
| 201 |
+
|
| 202 |
input[type="checkbox"] {
|
| 203 |
accent-color: black !important;
|
| 204 |
width: 18px;
|
| 205 |
height: 18px;
|
| 206 |
}
|
| 207 |
+
|
| 208 |
.gr-button {
|
| 209 |
font-weight: bold;
|
| 210 |
border-radius: 10px !important;
|
|
|
|
| 212 |
color: black !important;
|
| 213 |
border: 2px solid black !important;
|
| 214 |
}
|
| 215 |
+
|
| 216 |
.gr-button:hover {
|
| 217 |
background-color: #fff3e0 !important;
|
| 218 |
color: black !important;
|
| 219 |
}
|
| 220 |
+
|
| 221 |
label {
|
| 222 |
font-weight: 600 !important;
|
| 223 |
}
|
|
|
|
| 254 |
gr.Markdown("---")
|
| 255 |
gr.Markdown("Ferramenta desenvolvida para otimizar a busca por cons贸rcios de autom贸veis.")
|
| 256 |
|
|
|
|
|
|