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")) |