File size: 364 Bytes
33ab518 3c9ccf0 33ab518 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import os
import shlex
import gradio as gr
import subprocess
from huggingface_hub import HfApi
hf_token = os.getenv("LSM_token")
api = HfApi()
api.snapshot_download(repo_id="kairunwen/LSM_private_mast3r", repo_type="space", local_dir=".", token=hf_token)
subprocess.run(shlex.split("pip install -r requirements.txt"))
subprocess.run(shlex.split("python app.py")) |