InstantSplat / app_wrapper.py
kairunwen's picture
u
34b3cc0
raw
history blame
419 Bytes
import gradio as gr
import os
# import spaces
# token = os.getenv("HF_TOKEN")
# gr.load("kairunwen/tmp", hf_token=token, src="spaces").launch()
import shlex
import subprocess
from huggingface_hub import HfApi
api = HfApi()
api.snapshot_download(repo_id="kairunwen/tmp", repo_type="space", local_dir=".")
subprocess.run(shlex.split("pip install -r requirements.txt"))
subprocess.run(shlex.split("python app.py"))