File size: 460 Bytes
f7ccdf7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from huggingface_hub import Repository
import os
import sys
import torch
import cv2
import numpy as np
import gradio as gr
import pandas as pd
import time

token = os.environ['model_fetch']

sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

deid_repo = Repository(local_dir="deid", clone_from="felixrosberg/face-de-id-v2", use_auth_token=token)

from deid.huggingface_application import fetch_demo

demo = fetch_demo()
demo.launch()