Update app.py
Browse files
app.py
CHANGED
|
@@ -18,6 +18,12 @@ def sh(cmd): subprocess.check_call(cmd, shell=True)
|
|
| 18 |
|
| 19 |
flash_attention_installed = False
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
# try:
|
| 22 |
# print("Attempting to download and install FlashAttention wheel...")
|
| 23 |
# flash_attention_wheel = hf_hub_download(
|
|
|
|
| 18 |
|
| 19 |
flash_attention_installed = False
|
| 20 |
|
| 21 |
+
|
| 22 |
+
try:
|
| 23 |
+
sh("pip install flash-attn --no-build-isolation")
|
| 24 |
+
except Exception as e:
|
| 25 |
+
print(f"⚠️ Could not install FlashAttention: {e}")
|
| 26 |
+
|
| 27 |
# try:
|
| 28 |
# print("Attempting to download and install FlashAttention wheel...")
|
| 29 |
# flash_attention_wheel = hf_hub_download(
|