felixrosberg's picture
Create app.py
f7ccdf7 verified
raw
history blame
473 Bytes
from huggingface_hub import Repository
import os
import sys
import torch
import facer
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()