Spaces:
Running
Running
tomas-gajarsky
commited on
Commit
•
5910f04
1
Parent(s):
ce805af
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,10 @@
|
|
1 |
import json
|
|
|
2 |
import gradio as gr
|
3 |
import torchvision
|
4 |
from facetorch import FaceAnalyzer
|
5 |
from omegaconf import OmegaConf
|
|
|
6 |
|
7 |
|
8 |
cfg = OmegaConf.load("config.merged.yml")
|
|
|
1 |
import json
|
2 |
+
import operator
|
3 |
import gradio as gr
|
4 |
import torchvision
|
5 |
from facetorch import FaceAnalyzer
|
6 |
from omegaconf import OmegaConf
|
7 |
+
from torch.nn.functional import cosine_similarity
|
8 |
|
9 |
|
10 |
cfg = OmegaConf.load("config.merged.yml")
|