felixrosberg's picture
Update app.py
e9714ae verified
raw
history blame contribute delete
460 Bytes
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()