Spaces:
Running
on
Zero
Running
on
Zero
File size: 452 Bytes
fa9c5c4 acff253 fa9c5c4 acff253 fa9c5c4 b09dc92 44af0ec |
1 2 3 4 5 6 7 8 9 10 11 12 |
"""Script to prepare the env for gradio app."""
import sys
import subprocess
subprocess.check_call([sys.executable, "-m", "pip", "install", "huggingface_hub==0.25.1"])
# subprocess.check_call([sys.executable, "-m", "pip", "install", "xformers==0.0.21"])
# subprocess.run(
# "pip install flash-attn --no-build-isolation",
# env={"FLASH_ATTENTION_SKIP_CUDA_BUILD": "TRUE"},
# shell=True,
# )
subprocess.check_call([sys.executable, "app.py"]) |