Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,15 +1,6 @@
|
|
| 1 |
import os
|
| 2 |
import subprocess
|
| 3 |
|
| 4 |
-
repo_url = "https://huggingface.co/m-a-p/xcodec_mini_infer"
|
| 5 |
-
|
| 6 |
-
# Clone the repository using git
|
| 7 |
-
try:
|
| 8 |
-
subprocess.run(["git", "clone", repo_url, "."], check=True)
|
| 9 |
-
print(f"Repository cloned successfully")
|
| 10 |
-
except subprocess.CalledProcessError as e:
|
| 11 |
-
print(f"Failed to clone repository: {e}")
|
| 12 |
-
|
| 13 |
# Install flash attention
|
| 14 |
subprocess.run(
|
| 15 |
"pip install flash-attn --no-build-isolation",
|
|
|
|
| 1 |
import os
|
| 2 |
import subprocess
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
# Install flash attention
|
| 5 |
subprocess.run(
|
| 6 |
"pip install flash-attn --no-build-isolation",
|