Segizu commited on
Commit
13cd42f
·
1 Parent(s): f134081
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -3,9 +3,10 @@ import numpy as np
3
  from PIL import Image
4
  import gradio as gr
5
  from deepface import DeepFace
 
6
 
7
- # Ruta de la carpeta con rostros
8
- IMAGE_DIRECTORY = "dataset_faces/"
9
 
10
  # Cargar embeddings de todas las imágenes del dataset
11
  def build_database():
 
3
  from PIL import Image
4
  import gradio as gr
5
  from deepface import DeepFace
6
+ from datasets import load_dataset
7
 
8
+ # Cargamos el dataset sin aplicar formato especial
9
+ dataset = load_dataset("Segizu/dataset_faces")
10
 
11
  # Cargar embeddings de todas las imágenes del dataset
12
  def build_database():