Spaces:
Runtime error
Runtime error
ParisNeo commited on
Commit ·
a0678ce
1
Parent(s): 5edaec9
bugfixed
Browse files
app.py
CHANGED
|
@@ -10,27 +10,17 @@
|
|
| 10 |
import numpy as np
|
| 11 |
from pathlib import Path
|
| 12 |
import cv2
|
| 13 |
-
import time
|
| 14 |
|
| 15 |
from numpy.lib.type_check import imag
|
| 16 |
from FaceAnalyzer import FaceAnalyzer
|
| 17 |
|
| 18 |
-
import matplotlib.pyplot as plt
|
| 19 |
from pathlib import Path
|
| 20 |
import pickle
|
| 21 |
-
import tensorflow as tf
|
| 22 |
-
from tqdm import tqdm # used to draw a progress bar pip install tqdm
|
| 23 |
-
import tkinter as tk
|
| 24 |
-
from tkinter import simpledialog
|
| 25 |
from deepface import DeepFace
|
| 26 |
|
| 27 |
# Number of images to use to build the embedding
|
| 28 |
nb_images=50
|
| 29 |
|
| 30 |
-
# create Tkinter root window
|
| 31 |
-
root = tk.Tk()
|
| 32 |
-
root.withdraw()
|
| 33 |
-
|
| 34 |
|
| 35 |
# If faces path is empty then make it
|
| 36 |
faces_path = Path(__file__).parent/"faces"
|
|
|
|
| 10 |
import numpy as np
|
| 11 |
from pathlib import Path
|
| 12 |
import cv2
|
|
|
|
| 13 |
|
| 14 |
from numpy.lib.type_check import imag
|
| 15 |
from FaceAnalyzer import FaceAnalyzer
|
| 16 |
|
|
|
|
| 17 |
from pathlib import Path
|
| 18 |
import pickle
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
from deepface import DeepFace
|
| 20 |
|
| 21 |
# Number of images to use to build the embedding
|
| 22 |
nb_images=50
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
# If faces path is empty then make it
|
| 26 |
faces_path = Path(__file__).parent/"faces"
|