qnguyen3 commited on
Commit
08bc998
1 Parent(s): 95306c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -6,6 +6,8 @@ import time
6
  from PIL import Image
7
  import torch
8
  import spaces
 
 
9
 
10
  tokenizer = AutoTokenizer.from_pretrained(
11
  'qnguyen3/nanoLLaVA',
 
6
  from PIL import Image
7
  import torch
8
  import spaces
9
+ import subprocess
10
+ subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
11
 
12
  tokenizer = AutoTokenizer.from_pretrained(
13
  'qnguyen3/nanoLLaVA',