artyomxyz commited on
Commit
3b6e19a
·
verified ·
1 Parent(s): b618d36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,4 +1,6 @@
1
  import subprocess
 
 
2
  import os
3
 
4
  import gradio as gr
@@ -11,7 +13,6 @@ from pix2struct.modeling import Pix2StructModel
11
  from pix2struct.processing import extract_patches
12
  from pix2struct.inference import ask_generator, generate, DocumentQueries, DocumentQuery
13
 
14
- subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
15
 
16
  hub_token = os.environ.get('HUB_TOKEN')
17
  model_path = snapshot_download('artyomxyz/pix2struct-docmatix', use_auth_token=hub_token)
 
1
  import subprocess
2
+ subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
3
+
4
  import os
5
 
6
  import gradio as gr
 
13
  from pix2struct.processing import extract_patches
14
  from pix2struct.inference import ask_generator, generate, DocumentQueries, DocumentQuery
15
 
 
16
 
17
  hub_token = os.environ.get('HUB_TOKEN')
18
  model_path = snapshot_download('artyomxyz/pix2struct-docmatix', use_auth_token=hub_token)