SpaRP / install.py
chaoxu's picture
pre install
bb6d112
raw
history blame
603 Bytes
import os
import sys
import json
import uuid
import numpy as np
import gradio as gr
import trimesh
import zipfile
import subprocess
from datetime import datetime
from functools import partial
from PIL import Image, ImageChops
from huggingface_hub import snapshot_download
is_local_run = os.path.exists("../SpaRP_API")
code_dir = snapshot_download("sudo-ai/SpaRP_API", token=os.environ['HF_TOKEN']) if not is_local_run else "../SpaRP_API"
os.system(f"pip install {code_dir}/gradio_model3dcolor-0.0.1-py3-none-any.whl")
os.system(f"pip install {code_dir}/gradio_model3dnormal-0.0.1-py3-none-any.whl")