hellodav commited on
Commit
c6382bb
·
verified ·
1 Parent(s): aee9f08

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,8 +5,8 @@ from PIL import Image
5
  import pandas as pd
6
  import pytesseract
7
 
8
- # Install missing dependencies, including PyTorch and additional packages
9
- os.system("pip install torch transformers pandas pillow pytesseract flash_attn einops timm")
10
 
11
  # Load models
12
  text_model = AutoModelForCausalLM.from_pretrained("microsoft/Florence-2-large", trust_remote_code=True)
 
5
  import pandas as pd
6
  import pytesseract
7
 
8
+ # Install missing dependencies without flash_attn
9
+ os.system("pip install torch transformers pandas pillow pytesseract einops timm")
10
 
11
  # Load models
12
  text_model = AutoModelForCausalLM.from_pretrained("microsoft/Florence-2-large", trust_remote_code=True)