Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,8 +8,10 @@ import time
|
|
| 8 |
from inferencer import UniPicV2Inferencer
|
| 9 |
from accelerate.utils import set_seed
|
| 10 |
from huggingface_hub import snapshot_download
|
|
|
|
| 11 |
|
| 12 |
-
os.system("pip install ./flash_attn-2.7.4.post1+cu12torch2.6cxx11abiFALSE-cp310-cp310-linux_x86_64.whl")
|
|
|
|
| 13 |
|
| 14 |
model_path = snapshot_download(repo_id="Skywork/UniPic2-Metaquery-9B")
|
| 15 |
qwen_vl_path = snapshot_download(repo_id="Qwen/Qwen2.5-VL-7B-Instruct-AWQ")
|
|
|
|
| 8 |
from inferencer import UniPicV2Inferencer
|
| 9 |
from accelerate.utils import set_seed
|
| 10 |
from huggingface_hub import snapshot_download
|
| 11 |
+
import subprocess
|
| 12 |
|
| 13 |
+
#os.system("pip install ./flash_attn-2.7.4.post1+cu12torch2.6cxx11abiFALSE-cp310-cp310-linux_x86_64.whl")
|
| 14 |
+
subprocess.check_call([sys.executable, "-m", "pip", "install", "./flash_attn-2.7.4.post1+cu12torch2.6cxx11abiFALSE-cp310-cp310-linux_x86_64.whl"])
|
| 15 |
|
| 16 |
model_path = snapshot_download(repo_id="Skywork/UniPic2-Metaquery-9B")
|
| 17 |
qwen_vl_path = snapshot_download(repo_id="Qwen/Qwen2.5-VL-7B-Instruct-AWQ")
|