Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,13 @@
|
|
1 |
import gradio as gr
|
2 |
-
import torch
|
|
|
|
|
3 |
import numpy as np
|
4 |
from scipy.spatial.distance import cosine
|
5 |
import cv2
|
6 |
import os
|
7 |
|
|
|
8 |
RECOGNITION_THRESHOLD = 0.3
|
9 |
|
10 |
# Assuming the PyTorch model is a ResNet (or similar) and has been trained accordingly
|
|
|
1 |
import gradio as gr
|
2 |
+
import torch
|
3 |
+
import torchvision
|
4 |
+
import transformers
|
5 |
import numpy as np
|
6 |
from scipy.spatial.distance import cosine
|
7 |
import cv2
|
8 |
import os
|
9 |
|
10 |
+
|
11 |
RECOGNITION_THRESHOLD = 0.3
|
12 |
|
13 |
# Assuming the PyTorch model is a ResNet (or similar) and has been trained accordingly
|