LSM / app.py
kairunwen's picture
init
33ab518
raw
history blame
357 Bytes
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", repo_type="space", local_dir=".", token=hf_token)
subprocess.run(shlex.split("pip install -r requirements.txt"))
subprocess.run(shlex.split("python app.py"))