AI-Manith commited on
Commit
7c1e36a
1 Parent(s): 789d928

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -4,6 +4,9 @@ import torch
4
  from torchvision import transforms, utils
5
  from facenet_pytorch import MTCNN
6
  from torchvision.transforms.functional import to_pil_image
 
 
 
7
 
8
  # Function to load the ViT model and MTCNN
9
  def load_model(model_path):
 
4
  from torchvision import transforms, utils
5
  from facenet_pytorch import MTCNN
6
  from torchvision.transforms.functional import to_pil_image
7
+ import cv2
8
+ import numpy as np
9
+ import io
10
 
11
  # Function to load the ViT model and MTCNN
12
  def load_model(model_path):