Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
-
import
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
4 |
from huggingface_hub import snapshot_download
|
5 |
snapshot_download(repo_id="jzq11111/mooncast", local_dir='./resources/')
|
6 |
|
|
|
1 |
import gradio as gr
|
2 |
+
import subprocess
|
3 |
+
# Install flash attention, skipping CUDA build if necessary
|
4 |
+
subprocess.run(
|
5 |
+
"pip install flash-attn --no-build-isolation",
|
6 |
+
env={"FLASH_ATTENTION_SKIP_CUDA_BUILD": "TRUE"},
|
7 |
+
shell=True,
|
8 |
+
)
|
9 |
from huggingface_hub import snapshot_download
|
10 |
snapshot_download(repo_id="jzq11111/mooncast", local_dir='./resources/')
|
11 |
|