Spaces:
saadpie
/
Paused

alexnasa commited on
Commit
16fc0d8
·
verified ·
1 Parent(s): 0e4e438

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
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(