File size: 446 Bytes
6f8ebff
 
 
 
013d4d7
6f8ebff
 
 
 
 
 
 
 
 
 
 
013d4d7
6f8ebff
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import gradio as gr
import os
# import spaces

hf_token = os.getenv("instantsplat_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=".", token=hf_token)
subprocess.run(shlex.split("pip install -r requirements.txt"))
subprocess.run(shlex.split("python app.py"))