Commit
Β·
9adeced
1
Parent(s):
905fb8b
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import gradio
|
| 2 |
-
from huggingface_hub import Repository
|
| 3 |
import os
|
| 4 |
|
| 5 |
from utils.utils import norm_crop, estimate_norm, inverse_estimate_norm, transform_landmark_points, get_lm
|
|
@@ -18,8 +18,8 @@ token = os.environ['model_fetch']
|
|
| 18 |
|
| 19 |
opt = SwapOptions().parse()
|
| 20 |
|
| 21 |
-
retina_repo =
|
| 22 |
-
private=True,
|
| 23 |
|
| 24 |
from retina_model.models import *
|
| 25 |
|
|
|
|
| 1 |
import gradio
|
| 2 |
+
from huggingface_hub import Repository
|
| 3 |
import os
|
| 4 |
|
| 5 |
from utils.utils import norm_crop, estimate_norm, inverse_estimate_norm, transform_landmark_points, get_lm
|
|
|
|
| 18 |
|
| 19 |
opt = SwapOptions().parse()
|
| 20 |
|
| 21 |
+
retina_repo = Repository(local_dir="retina_model", clone_from="felixrosberg/retinaface_resnet50",
|
| 22 |
+
private=True, use_auth_token=token)
|
| 23 |
|
| 24 |
from retina_model.models import *
|
| 25 |
|