Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,21 +13,25 @@ def predict(path:str):
|
|
| 13 |
for r in results:
|
| 14 |
return r.plot()
|
| 15 |
|
| 16 |
-
image_url = "https://huggingface.co/spaces/Jass0117/test/blob/main/diente.jpg"
|
| 17 |
-
|
| 18 |
css = f"""
|
| 19 |
.gradio-container {{
|
| 20 |
background-color: #ADD8E6; /* Fondo azul claro */
|
| 21 |
-
|
| 22 |
-
url('{image_url}'),
|
| 23 |
-
url('{image_url}'),
|
| 24 |
-
url('{image_url}');
|
| 25 |
-
background-position: top left, top right, bottom left, bottom right;
|
| 26 |
-
background-repeat: no-repeat;
|
| 27 |
-
background-size: 100px 100px; /* Ajusta el tamaño de la imagen si es necesario */
|
| 28 |
}}
|
| 29 |
"""
|
| 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
with gr.Blocks(css=css) as demo:
|
| 33 |
# Encabezado
|
|
|
|
| 13 |
for r in results:
|
| 14 |
return r.plot()
|
| 15 |
|
|
|
|
|
|
|
| 16 |
css = f"""
|
| 17 |
.gradio-container {{
|
| 18 |
background-color: #ADD8E6; /* Fondo azul claro */
|
| 19 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
}}
|
| 21 |
"""
|
| 22 |
|
| 23 |
+
fdi_teeth = [
|
| 24 |
+
# Cuadrante 1 (Superior derecho)
|
| 25 |
+
'11', '12', '13', '14', '15', '16', '17', '18',
|
| 26 |
+
# Cuadrante 2 (Superior izquierdo)
|
| 27 |
+
'21', '22', '23', '24', '25', '26', '27', '28',
|
| 28 |
+
# Cuadrante 3 (Inferior izquierdo)
|
| 29 |
+
'31', '32', '33', '34', '35', '36', '37', '38',
|
| 30 |
+
# Cuadrante 4 (Inferior derecho)
|
| 31 |
+
'41', '42', '43', '44', '45', '46', '47', '48'
|
| 32 |
+
]
|
| 33 |
+
fdi_teeth
|
| 34 |
+
|
| 35 |
|
| 36 |
with gr.Blocks(css=css) as demo:
|
| 37 |
# Encabezado
|